mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
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
This commit is contained in:
4
types/angular/index.d.ts
vendored
4
types/angular/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user