From c52aae7a4c17f27181a6c834b25e3c3efa77065c Mon Sep 17 00:00:00 2001 From: "Thomas.G" Date: Fri, 31 May 2024 12:07:19 +0200 Subject: [PATCH] fix(taggedString): allow TemplateStringsArray as argument (#135) --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index e89aaae..e7e83f6 100644 --- a/index.d.ts +++ b/index.d.ts @@ -6,7 +6,7 @@ declare namespace i18n { export function getToken(token: string, ...parameters): Promise; export function getTokenSync(token: string, ...parameters): string; export function getLanguages(): Promise; - export function taggedString(str: string, ...keys: any[]): (...keys: any[]) => string; + export function taggedString(str: string | TemplateStringsArray, ...keys: any[]): (...keys: any[]) => string; export function extend(language: string, tokens: Record): void; export function extendFromSystemPath(path: string): Promise; }