angular : $http timeout can be number or promise

reference : https://github.com/angular/angular.js/issues/1159#issuecomment-19043323
This commit is contained in:
Basarat Ali Syed 2013-11-18 15:17:53 +11:00
parent 1efa27f49a
commit 2dbd46d87f

View File

@ -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> {