Update watchExpressions definition for $watchGroup

Per https://docs.angularjs.org/api/ng/type/$rootScope.Scope,
the watchExpressions is an array of string OR Function(scope).

Array.<string|Function(scope)>
This commit is contained in:
Audrey
2014-05-26 10:22:29 -04:00
parent 3cf31761ec
commit 5a77a8a133

View File

@@ -236,7 +236,7 @@ declare module ng {
$watchCollection(watchExpression: string, listener: (newValue: any, oldValue: any, scope: IScope) => any): Function;
$watchCollection(watchExpression: (scope: IScope) => any, listener: (newValue: any, oldValue: any, scope: IScope) => any): Function;
$watchGroup(watchExpressions: string[], listener: (newValue: any, oldValue: any, scope: IScope) => any): Function;
$watchGroup(watchExpressions: any[], listener: (newValue: any, oldValue: any, scope: IScope) => any): Function;
$watchGroup(watchExpressions: {(scope: IScope) : any}[], listener: (newValue: any, oldValue: any, scope: IScope) => any): Function;
$parent: IScope;