diff --git a/i18next/i18next-tests.ts b/i18next/i18next-tests.ts index 2b4ce5a45..f40d10b3a 100644 --- a/i18next/i18next-tests.ts +++ b/i18next/i18next-tests.ts @@ -112,7 +112,7 @@ describe('i18next', function () { describe('to current', function () { - var spy; + var spy: any; beforeEach(function (done) { spy = sinon.spy(i18n.sync, '_fetchOne'); @@ -140,7 +140,7 @@ describe('i18next', function () { describe('to unspecific', function () { - var spy; + var spy: any; beforeEach(function (done) { spy = sinon.spy(i18n.sync, '_fetchOne'); @@ -174,7 +174,7 @@ describe('i18next', function () { describe('with fallback language set to false', function () { - var spy; + var spy: any; beforeEach(function (done) { spy = sinon.spy(i18n.sync, '_fetchOne'); @@ -202,7 +202,7 @@ describe('i18next', function () { describe('preloading multiple languages', function () { - var spy; + var spy: any; beforeEach(function (done) { spy = sinon.spy(i18n.sync, '_fetchOne'); @@ -325,7 +325,7 @@ describe('i18next', function () { describe('with using localStorage', function () { - var spy; + var spy: any; before(function () { window.localStorage.removeItem('res_en-US'); @@ -378,7 +378,7 @@ describe('i18next', function () { describe('using function provided in callback\'s argument', function () { - var cbT; + var cbT: any; beforeEach(function (done) { i18n.init(opts, function (t) { cbT = t; done(); }); @@ -394,7 +394,7 @@ describe('i18next', function () { describe('using localStorage', function () { - var spy; + var spy: any; before(function () { window.localStorage.removeItem('res_en-US'); @@ -462,7 +462,7 @@ describe('i18next', function () { resStore: { 'en-US': { translation: { 'simple_en-US': 'ok_from_en-US' } } } - }, function (t) { done(); })); + }, function (t: any) { done(); })); }); it('it should translate the uppercased lng value', function () { @@ -484,7 +484,7 @@ describe('i18next', function () { resStore: { 'en-us': { translation: { 'simple_en-us': 'ok_from_en-us' } } } - }, function (t) { done(); })); + }, function (t: any) { done(); })); }); it('it should translate the lowercase lng value', function () { @@ -529,7 +529,7 @@ describe('i18next', function () { describe('preloading multiple languages', function () { - var spy; + var spy: any; beforeEach(function (done) { spy = sinon.spy(i18n.sync, '_fetchOne'); @@ -599,7 +599,7 @@ describe('i18next', function () { describe('post missing resources', function () { describe('to fallback', function () { - var server, stub; + var server: any, stub: any; beforeEach(function (done) { server = sinon.fakeServer.create(); @@ -631,7 +631,7 @@ describe('i18next', function () { }); describe('to all', function () { - var server, stub; + var server: any, stub: any; beforeEach(function (done) { server = sinon.fakeServer.create(); @@ -1165,7 +1165,7 @@ describe('i18next', function () { }; beforeEach(function (done) { - i18n.init($.extend(opts, { resStore: resStore })).done(function (t) { done(); }); + i18n.init($.extend(opts, { resStore: resStore })).done(function (t: any) { done(); }); }); it('it should provide passed in resources for translation', function () { diff --git a/i18next/i18next-tests.ts.tscparams b/i18next/i18next-tests.ts.tscparams deleted file mode 100644 index e16c76dff..000000000 --- a/i18next/i18next-tests.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ -"" diff --git a/i18next/i18next.d.ts b/i18next/i18next.d.ts index 7b29d19c7..5fd631030 100644 --- a/i18next/i18next.d.ts +++ b/i18next/i18next.d.ts @@ -79,7 +79,7 @@ interface I18nextStatic { remove: (name: string) => void; }; detectLanguage(): string; - log(message: string); + log(message: string): void; toLanguages(language: string): string[]; regexEscape(str: string): string; }; @@ -93,7 +93,7 @@ interface I18nextStatic { name: string; numbers: number[]; plurals: (n: number) => number; - }); + }): void; get (language: string, count: number): number; rules: any; setCurrentLng: (language: string) => void; diff --git a/i18next/i18next.d.ts.tscparams b/i18next/i18next.d.ts.tscparams deleted file mode 100644 index e16c76dff..000000000 --- a/i18next/i18next.d.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ -""