mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Support --noImplicitAny about i18next/i18next.d.ts
This commit is contained in:
+13
-13
@@ -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 () {
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
""
|
||||
Vendored
+2
-2
@@ -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;
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
""
|
||||
Reference in New Issue
Block a user