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
Michael Prentice

parent
e934864a90
commit
84348299b3
@ -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