From 5a77a8a133c00f01547b9c10c7a50f780ff1d2d2 Mon Sep 17 00:00:00 2001 From: Audrey Date: Mon, 26 May 2014 10:22:29 -0400 Subject: [PATCH] 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. --- angularjs/angular.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index f4cc59a04d..1ee9079d3c 100755 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -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;