From 8f1112895f90ca62787767e75e6c76e515230d6e Mon Sep 17 00:00:00 2001 From: Nikos Vasileiou Date: Fri, 19 Jan 2024 15:23:12 +0200 Subject: [PATCH] Update @transifex/native TS .d.ts file --- packages/native/src/index.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/native/src/index.d.ts b/packages/native/src/index.d.ts index 8c9bcbae..2c29513d 100644 --- a/packages/native/src/index.d.ts +++ b/packages/native/src/index.d.ts @@ -115,6 +115,8 @@ declare module '@transifex/native' { translate(sourceString: string, params?: ITranslateParams): string; translateLocale(localeCode: string, sourceString: string, params?: ITranslateParams): string; + + t(sourceString: string, params?: ITranslateParams): string; } export class MessageFormatRenderer implements IMessageFormatRenderer { @@ -165,7 +167,7 @@ declare module '@transifex/native' { localeCode: string; } - export function createNativeInstance(initOptions: ITranslationConfig): TxNative; + export function createNativeInstance(initOptions?: ITranslationConfig): TxNative; export function escape(unsafe: string): string;