Skip to content

Commit

Permalink
Merge pull request #1158 from webleaf/patch-1
Browse files Browse the repository at this point in the history
fix init() attributes typings
  • Loading branch information
jamuhl committed Jan 9, 2019
2 parents 1d22b3e + cebb9e6 commit 21da9f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -552,8 +552,8 @@ declare namespace i18next {
* @param options - Initial options.
* @param callback - will be called after all translations were loaded or with an error when failed (in case of using a backend).
*/
init(options: InitOptions, callback?: Callback): Promise<TranslationFunction>;
init(callback?: Callback): Promise<TranslationFunction>;
init(options: InitOptions, callback?: Callback): Promise<TranslationFunction>;

loadResources(callback?: (err: any) => void): void;

Expand Down

0 comments on commit 21da9f4

Please sign in to comment.