Merge pull request #15364 from thr0wn/master

angularjs - Fix ITimeoutService interface ($timeout signature)
This commit is contained in:
Nathan Shively-Sanders 2017-03-30 15:51:39 -07:00 committed by GitHub
commit 45a968de32

View File

@ -602,7 +602,7 @@ declare namespace angular {
///////////////////////////////////////////////////////////////////////////
interface ITimeoutService {
(delay?: number, invokeApply?: boolean): IPromise<void>;
<T>(fn: (...args: any[]) => T, delay?: number, invokeApply?: boolean, ...args: any[]): IPromise<T>;
<T>(fn: (...args: any[]) => T | IPromise<T>, delay?: number, invokeApply?: boolean, ...args: any[]): IPromise<T>;
cancel(promise?: IPromise<any>): boolean;
}