Skip to content

Commit

Permalink
Rename ITranslationServiceConfig
Browse files Browse the repository at this point in the history
to ITranslationConfig
  • Loading branch information
rgant authored Feb 21, 2023
1 parent 1574c03 commit 233a81a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/native/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ declare module '@transifex/native' {
_tags?: string;
}

export interface ITranslationServiceConfig {
export interface ITranslationConfig {
cache?: IMemoryCache;
cdsHost?: string;
currentLocale?: string;
Expand Down Expand Up @@ -53,7 +53,7 @@ declare module '@transifex/native' {
handle(error: Error, sourceString: string, localeCode: string, params: ITranslateParams): string;
}

export class TxNative implements ITranslationServiceConfig {
export class TxNative implements ITranslationConfig {
cache: IMemoryCache;
cdsHost: string;
childInstances: TxNative[];
Expand Down Expand Up @@ -81,7 +81,7 @@ declare module '@transifex/native' {

getLocales(config?: { refresh?: boolean }): Promise<string[]>;

init(config: ITranslationServiceConfig): void;
init(config: ITranslationConfig): void;

invalidateCDS(config?: { purge?: boolean }): Promise<{ count: number; status: number; token: number }>;

Expand Down Expand Up @@ -165,7 +165,7 @@ declare module '@transifex/native' {
localeCode: string;
}

export function createNativeInstance(initOptions: ITranslationServiceConfig): TxNative;
export function createNativeInstance(initOptions: ITranslationConfig): TxNative;

export function escape(unsafe: string): string;

Expand Down

0 comments on commit 233a81a

Please sign in to comment.