Skip to content

Commit

Permalink
Update @transifex/native TS .d.ts file
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikos Vasileiou committed Jan 19, 2024
1 parent 5110e56 commit 8f11128
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/native/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 8f11128

Please sign in to comment.