mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
angular : $http timeout can be number or promise
reference : https://github.com/angular/angular.js/issues/1159#issuecomment-19043323
This commit is contained in:
parent
1efa27f49a
commit
2dbd46d87f
2
angularjs/angular.d.ts
vendored
2
angularjs/angular.d.ts
vendored
@ -580,13 +580,13 @@ declare module ng {
|
||||
headers?: any;
|
||||
|
||||
cache?: any;
|
||||
timeout?: number;
|
||||
withCredentials?: boolean;
|
||||
|
||||
// These accept multiple types, so let's defile them as any
|
||||
data?: any;
|
||||
transformRequest?: any;
|
||||
transformResponse?: any;
|
||||
timeout?: any; // number | promise
|
||||
}
|
||||
|
||||
interface IHttpPromiseCallback<T> {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user