Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(ts): fix wrong type information
fixes wrong return type information of setup and i18nextReady methods

fixes issue #136 (comment)
  • Loading branch information
zewa666 committed Aug 30, 2016
1 parent 6d9c4ae commit c86cd3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/i18n.js
Expand Up @@ -24,7 +24,7 @@ export class I18N {
this.i18nextDefered.promise = new Promise((resolve) => this.i18nextDefered.resolve = resolve); this.i18nextDefered.promise = new Promise((resolve) => this.i18nextDefered.resolve = resolve);
} }


setup(options?): Promise<i18next.I18n> { setup(options?): Promise<any> {
const defaultOptions = { const defaultOptions = {
compatibilityAPI: 'v1', compatibilityAPI: 'v1',
compatibilityJSON: 'v1', compatibilityJSON: 'v1',
Expand All @@ -46,7 +46,7 @@ export class I18N {
return this.i18nextDefered.promise; return this.i18nextDefered.promise;
} }


i18nextReady(): Promise<i18next.I18n> { i18nextReady(): Promise<any> {
return this.i18nextDefered.promise; return this.i18nextDefered.promise;
} }


Expand Down

0 comments on commit c86cd3f

Please sign in to comment.