Update angular.d.ts

The listener may take a single event argument.
This commit is contained in:
Martin McWhorter
2014-08-04 00:59:56 +01:00
committed by martinmcwhorter
parent aec2fa9e39
commit 11737fa5b1
+1
View File
@@ -337,6 +337,7 @@ declare module ng {
$new(isolate?: boolean): IScope;
$on(name: string, listener: (event: IAngularEvent, ...args: any[]) => any): Function;
$on(name: string, listener: (event: IAngularEvent, eventArg: any) => any): Function;
$watch(watchExpression: string, listener?: string, objectEquality?: boolean): Function;
$watch(watchExpression: string, listener?: (newValue: any, oldValue: any, scope: IScope) => any, objectEquality?: boolean): Function;