From a4af2e4e31b8ab2e2bc4f3075434898ca0a092e3 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders Date: Wed, 10 Aug 2016 07:13:51 -0700 Subject: [PATCH] Fix i18next merge --- i18next/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/i18next/index.d.ts b/i18next/index.d.ts index b02aa16bbe..39e0f2a1a2 100644 --- a/i18next/index.d.ts +++ b/i18next/index.d.ts @@ -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;