mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-05 12:20:07 +08: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:
1 parent
1efa27f49a
commit
2dbd46d87f
1 file changed
+1
-1
Vendored
+1
-1
@@ -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> {
|
||||
|
||||
Reference in new issue
Block a user