From 7ce18dce88f01800edb83f2a7bb8ae03580d1afc Mon Sep 17 00:00:00 2001 From: Cosmin Ababei Date: Fri, 2 Jun 2017 18:03:52 +0300 Subject: [PATCH] Added locals to $evalAsync (#16725) * Added locals to $evalAsync See https://docs.angularjs.org/api/ng/type/$rootScope.Scope#$evalAsync * Changed the return type of the expression inside $evalAsync --- types/angular/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/angular/index.d.ts b/types/angular/index.d.ts index c895c4f7ee..5913568fdc 100644 --- a/types/angular/index.d.ts +++ b/types/angular/index.d.ts @@ -487,8 +487,8 @@ declare namespace angular { $eval(expression: (scope: IScope) => any, locals?: Object): any; $evalAsync(): void; - $evalAsync(expression: string): void; - $evalAsync(expression: (scope: IScope) => any): void; + $evalAsync(expression: string, locals?: Object): void; + $evalAsync(expression: (scope: IScope) => void, locals?: Object): void; // Defaults to false by the implementation checking strategy $new(isolate?: boolean, parent?: IScope): IScope;