mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Merge pull request #1532 from vvakame/supportNoImplicitAny
More library support --noImplicitAny options
This commit is contained in:
@@ -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<any>; }[] = [];
|
||||
|
||||
/**
|
||||
* 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', <any>function ($httpProvider: ng.IHttpProvider, authServiceProvider) {
|
||||
.config(['$httpProvider', 'authServiceProvider', <any>function ($httpProvider: ng.IHttpProvider, authServiceProvider: any) {
|
||||
|
||||
var interceptor = ['$rootScope', '$q', <any>function ($rootScope: ng.IScope, $q: ng.IQService) {
|
||||
function success(response: ng.IHttpPromiseCallbackArg<any>) {
|
||||
@@ -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
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
""
|
||||
@@ -1 +0,0 @@
|
||||
""
|
||||
Vendored
+2
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
""
|
||||
@@ -1 +0,0 @@
|
||||
""
|
||||
Vendored
+9
-12
@@ -5,26 +5,23 @@
|
||||
|
||||
/// <reference path="../node/node.d.ts" />
|
||||
|
||||
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" {
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
""
|
||||
@@ -7,7 +7,7 @@ var log = (data:any) => {
|
||||
};
|
||||
|
||||
var setupCallback = (src:string, request:DOMRequest<App>) => {
|
||||
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) {
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
""
|
||||
@@ -1 +0,0 @@
|
||||
""
|
||||
Vendored
+2
-2
@@ -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 {
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
""
|
||||
+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