diff --git a/angularjs/angular-tests.ts b/angularjs/angular-tests.ts index 0b68433098..18f5ccb4ee 100644 --- a/angularjs/angular-tests.ts +++ b/angularjs/angular-tests.ts @@ -14,7 +14,7 @@ angular.module('http-auth-interceptor', []) * Holds all the requests which failed due to 401 response, * so they can be re-requested in future, once login is completed. */ - var buffer = []; + var buffer: { config: ng.IRequestConfig; deferred: ng.IDeferred; }[] = []; /** * Required by HTTP interceptor. @@ -55,7 +55,7 @@ angular.module('http-auth-interceptor', []) * $http interceptor. * On 401 response - it stores the request and broadcasts 'event:angular-auth-loginRequired'. */ - .config(['$httpProvider', 'authServiceProvider', function ($httpProvider: ng.IHttpProvider, authServiceProvider) { + .config(['$httpProvider', 'authServiceProvider', function ($httpProvider: ng.IHttpProvider, authServiceProvider: any) { var interceptor = ['$rootScope', '$q', function ($rootScope: ng.IScope, $q: ng.IQService) { function success(response: ng.IHttpPromiseCallbackArg) { @@ -145,14 +145,14 @@ module HttpAndRegularPromiseTests { .success(callback); } - doFoo((data) => console.log(data)); + doFoo((data: any) => console.log(data)); } } // Test for AngularJS Syntax module My.Namespace { - export var x; // need to export something for module to kick in + export var x: any; // need to export something for module to kick in } // IModule Registering Test diff --git a/angularjs/angular-tests.ts.tscparams b/angularjs/angular-tests.ts.tscparams deleted file mode 100644 index e16c76dff8..0000000000 --- a/angularjs/angular-tests.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ -"" diff --git a/box2d/box2dweb-tests.ts.tscparams b/box2d/box2dweb-tests.ts.tscparams deleted file mode 100644 index e16c76dff8..0000000000 --- a/box2d/box2dweb-tests.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ -"" diff --git a/box2d/box2dweb.d.ts b/box2d/box2dweb.d.ts index 68701a5956..b5f5579890 100644 --- a/box2d/box2dweb.d.ts +++ b/box2d/box2dweb.d.ts @@ -4271,7 +4271,7 @@ declare module Box2D.Dynamics.Joints { * Set the user data pointer. * @param data Your custom data. **/ - public SetUserData(data: any); void; + public SetUserData(data: any): void; } } @@ -5377,7 +5377,7 @@ declare module Box2D.Dynamics.Joints { * Set the motor speed in radians per second. * @param speed New motor speed. **/ - public SetMotorSpeed(speed: number); void; + public SetMotorSpeed(speed: number): void; } } diff --git a/box2d/box2dweb.d.ts.tscparams b/box2d/box2dweb.d.ts.tscparams deleted file mode 100644 index e16c76dff8..0000000000 --- a/box2d/box2dweb.d.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ -"" diff --git a/browserify/browserify-tests.ts.tscparams b/browserify/browserify-tests.ts.tscparams deleted file mode 100644 index e16c76dff8..0000000000 --- a/browserify/browserify-tests.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ -"" diff --git a/browserify/browserify.d.ts b/browserify/browserify.d.ts index cfdce2da21..d66bf5a5f4 100644 --- a/browserify/browserify.d.ts +++ b/browserify/browserify.d.ts @@ -5,26 +5,23 @@ /// -interface BrowserifyObject { - add(file: string); +interface BrowserifyObject extends EventEmitter { + add(file: string): BrowserifyObject; require(file: string, opts?: { expose: string; - }); + }): BrowserifyObject; bundle(opts?: { insertGlobals?: boolean; detectGlobals?: boolean; debug?: boolean; standalone?: string; - insertGlobalVars? ; - }, cb?: (err, src) => void): ReadableStream; + insertGlobalVars?: any; + }, cb?: (err: any, src: any) => void): ReadableStream; - external(file: string); - ignore(file: string); - transform(tr: string); - transform(tr: Function); - - on(event: string, action: Function): void; - on(event: "file", action: (file, id, parent) => void); + external(file: string): BrowserifyObject; + ignore(file: string): BrowserifyObject; + transform(tr: string): BrowserifyObject; + transform(tr: Function): BrowserifyObject; } declare module "browserify" { diff --git a/browserify/browserify.d.ts.tscparams b/browserify/browserify.d.ts.tscparams deleted file mode 100644 index e16c76dff8..0000000000 --- a/browserify/browserify.d.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ -"" diff --git a/firefox/firefox-tests.ts b/firefox/firefox-tests.ts index 30f7d7493c..203539f54e 100644 --- a/firefox/firefox-tests.ts +++ b/firefox/firefox-tests.ts @@ -7,7 +7,7 @@ var log = (data:any) => { }; var setupCallback = (src:string, request:DOMRequest) => { - request.onsuccess = (data)=> { + request.onsuccess = (data: any)=> { if (request.result && request.result.manifest) { log('app is installed ' + request.result.manifest.name + " by " + src); } else if (request.result) { diff --git a/firefox/firefox-tests.ts.tscparams b/firefox/firefox-tests.ts.tscparams deleted file mode 100644 index e16c76dff8..0000000000 --- a/firefox/firefox-tests.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ -"" diff --git a/google.analytics/ga-tests.ts.tscparams b/google.analytics/ga-tests.ts.tscparams deleted file mode 100644 index e16c76dff8..0000000000 --- a/google.analytics/ga-tests.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ -"" diff --git a/google.analytics/ga.d.ts b/google.analytics/ga.d.ts index f9df7a4e14..032e236eee 100644 --- a/google.analytics/ga.d.ts +++ b/google.analytics/ga.d.ts @@ -8,7 +8,7 @@ declare class Tracker { _getName(): string; _getAccount(): string; _getVersion(): string; - _getVisitorCustomVar(index: number); string; + _getVisitorCustomVar(index: number): string; _setAccount(): string; _setCustomVar(index: number, name: string, value: string, opt_scope?: number): boolean; _setSampleRate(newRate: string): void; @@ -20,7 +20,7 @@ declare class Tracker { interface GoogleAnalyticsCode { push(commandArray: string[]): void; - push(Function): void; + push(func: Function): void; } interface GoogleAnalyticsTracker { diff --git a/google.analytics/ga.d.ts.tscparams b/google.analytics/ga.d.ts.tscparams deleted file mode 100644 index e16c76dff8..0000000000 --- a/google.analytics/ga.d.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ -"" diff --git a/i18next/i18next-tests.ts b/i18next/i18next-tests.ts index 2b4ce5a45c..f40d10b3a3 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 e16c76dff8..0000000000 --- a/i18next/i18next-tests.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ -"" diff --git a/i18next/i18next.d.ts b/i18next/i18next.d.ts index 7b29d19c7d..5fd6310304 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 e16c76dff8..0000000000 --- a/i18next/i18next.d.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ -""