Update angular.d.ts

The listener may take a single event argument.
This commit is contained in:
Martin McWhorter
2014-02-10 17:40:59 +00:00
parent b765f90a1c
commit 0690841c6b

View File

@@ -227,6 +227,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;