Skip to content

Commit c1f48f0

Browse files
committed
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.
1 parent ba424f7 commit c1f48f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

angularjs/angular.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ declare module angular {
615615
// see http://docs.angularjs.org/api/ng.$interval
616616
///////////////////////////////////////////////////////////////////////////
617617
interface IIntervalService {
618-
(func: Function, delay: number, count?: number, invokeApply?: boolean): IPromise<any>;
618+
(func: Function, delay: number, count?: number, invokeApply?: boolean, ...args: any[]): IPromise<any>;
619619
cancel(promise: IPromise<any>): boolean;
620620
}
621621

0 commit comments

Comments
 (0)