Skip to content

Commit

Permalink
Merge pull request #211 from transifex/txnative-update-d-ts
Browse files Browse the repository at this point in the history
@transifex/native: Update .d.ts file
  • Loading branch information
Nikos Vasileiou committed Jan 19, 2024
2 parents 5110e56 + 8f11128 commit f1f1ecc
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 f1f1ecc

Please sign in to comment.