mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-11 12:00:27 +08:00
Update angular.d.ts
The listener may take a single event argument.
This commit is contained in:
1 parent
b765f90a1c
commit
0690841c6b
1 file changed
+1
Vendored
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user