mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 08:58:23 +08:00
Fix i18next merge
This commit is contained in:
6
i18next/index.d.ts
vendored
6
i18next/index.d.ts
vendored
@@ -87,8 +87,8 @@ declare namespace i18n {
|
||||
|
||||
type TranslationFunction = (key: string, options?: TranslationOptions) => string;
|
||||
|
||||
class I18n {
|
||||
constructor(options?: Options, callback?: (err: any, t: TranslationFunction) => void);
|
||||
interface I18n {
|
||||
//constructor(options?: Options, callback?: (err: any, t: TranslationFunction) => void);
|
||||
|
||||
init(options?: Options, callback?: (err: any, t: TranslationFunction) => void): I18n;
|
||||
|
||||
@@ -121,7 +121,7 @@ declare namespace i18n {
|
||||
cloneInstance(options?: Options, callback?: (err: any, t: TranslationFunction) => void): I18n;
|
||||
|
||||
on(event: string, listener: () => void): void;
|
||||
on(initialized: 'initialized', listener: (options: I18next.Options) => void): void;
|
||||
on(initialized: 'initialized', listener: (options: i18n.Options) => void): void;
|
||||
on(loaded: 'loaded', listener: (loaded: any) => void): void;
|
||||
on(failedLoading: 'failedLoading', listener: (lng: string, ns: string, msg: string) => void): void;
|
||||
on(missingKey: 'missingKey', listener: (lngs: any, namespace: string, key: string, res: any) => void): void;
|
||||
|
||||
Reference in New Issue
Block a user