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:
JiaLiPassion
2020-06-15 12:43:57 +09:00
committed by Misko Hevery
parent e79b6c31f9
commit b142283ba2
2 changed files with 10 additions and 10 deletions

View File

@ -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.