Fix: IIntervalService missing optional function arguments

IIntervalService can take arguments to be passed to the function (`[Pass]`):

> $interval(fn, delay, [count], [invokeApply], [Pass]);

This adds this to the definition.
This commit is contained in:
Frode Egeland
2015-11-24 11:07:51 +09:00
parent ba424f7ee3
commit c1f48f0958
+1 -1
View File
@@ -615,7 +615,7 @@ declare module angular {
// see http://docs.angularjs.org/api/ng.$interval
///////////////////////////////////////////////////////////////////////////
interface IIntervalService {
(func: Function, delay: number, count?: number, invokeApply?: boolean): IPromise<any>;
(func: Function, delay: number, count?: number, invokeApply?: boolean, ...args: any[]): IPromise<any>;
cancel(promise: IPromise<any>): boolean;
}