fix(core): unify the signature between ngZone and noopZone (#37581)
Now we have two implementations of Zone in Angular, one is NgZone, the other is NoopZone. They should have the same signatures, includes 1. properties 2. methods In this PR, unify the signatures of the two implementations, and remove the unnecessary cast. PR Close #37581
This commit is contained in:

committed by
Misko Hevery

parent
0cd4b87021
commit
d5264f5645
@ -223,9 +223,9 @@ interface Zone {
|
||||
* @param task to run
|
||||
* @param applyThis
|
||||
* @param applyArgs
|
||||
* @returns {*}
|
||||
* @returns {any} Value from the `task.callback` function.
|
||||
*/
|
||||
runTask(task: Task, applyThis?: any, applyArgs?: any): any;
|
||||
runTask<T>(task: Task, applyThis?: any, applyArgs?: any): T;
|
||||
|
||||
/**
|
||||
* Schedule a MicroTask.
|
||||
|
Reference in New Issue
Block a user