From 2167630b2ae3332c01cf985832e3146efb0458b8 Mon Sep 17 00:00:00 2001 From: Basarat Ali Syed Date: Thu, 4 Sep 2014 09:50:18 +1000 Subject: [PATCH] Argument to eval and evalAsync are optional Reference : https://github.com/angular/angular.js/pull/8558 --- angularjs/angular.d.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index 084bea034f..7e2f5ddba7 100755 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -482,13 +482,11 @@ declare module ng { $digest(): void; $emit(name: string, ...args: any[]): IAngularEvent; - // Documentation says exp is optional, but actual implementaton counts on it - $eval(expression: string, args?: Object): any; - $eval(expression: (scope: IScope) => any, args?: Object): any; + $eval(expression?: string, args?: Object): any; + $eval(expression?: (scope: IScope) => any, args?: Object): any; - // Documentation says exp is optional, but actual implementaton counts on it - $evalAsync(expression: string): void; - $evalAsync(expression: (scope: IScope) => any): void; + $evalAsync(expression?: string): void; + $evalAsync(expression?: (scope: IScope) => any): void; // Defaults to false by the implementation checking strategy $new(isolate?: boolean): IScope;