diff --git a/i18next/i18next.d.ts b/i18next/i18next.d.ts index f9ea5fb423..b82456dd85 100644 --- a/i18next/i18next.d.ts +++ b/i18next/i18next.d.ts @@ -83,8 +83,8 @@ interface I18nextStatic { toLanguages(language: string): string[]; regexEscape(str: string): string; }; - init(callback?: (t: (key: string, options?: any) => string) => void ): JQueryDeferred; - init(options?: I18nextOptions, callback?: (t: (key: string, options?: any) => string) => void ): JQueryDeferred; + init(callback?: (t: (key: string, options?: any) => string) => void ): JQueryDeferred; + init(options?: I18nextOptions, callback?: (t: (key: string, options?: any) => string) => void ): JQueryDeferred; lng(): string; loadNamespace(namespace: string, callback?: () => void ): void; loadNamespaces(namespaces: string[], callback?: () => void ): void; @@ -124,4 +124,4 @@ interface JQuery { i18n: (options?: I18nextOptions) => void; } -declare var i18next: I18nextStatic; \ No newline at end of file +declare var i18next: I18nextStatic;