fix(zone.js): UNPATCHED_EVENTS and PASSIVE_EVENTS should be string[] not boolean (#36258)

__zone_symbol__UNPATCHED_EVENTS and __zone_symbol__PASSIVE_EVENTS should be string[] type not boolean.
For example:
```
const config = window as ZoneGlobalConfigurations;
config.__zone_symbol__UNPATCHED_EVENTS = ['scroll'];
config.__zone_symbol__PASSIVE_EVENTS = ['scroll'];
```

PR Close #36258
This commit is contained in:
JiaLiPassion 2020-03-26 21:46:46 +09:00 committed by Alex Rickabaugh
parent 9d8bb634f9
commit 36e927a8c6
1 changed files with 2 additions and 2 deletions

View File

@ -512,7 +512,7 @@ interface ZoneGlobalConfigurations {
* Users can achieve this goal by defining `__zone_symbol__UNPATCHED_EVENTS = ['scroll', * Users can achieve this goal by defining `__zone_symbol__UNPATCHED_EVENTS = ['scroll',
* 'mousemove'];` before importing `zone.js`. * 'mousemove'];` before importing `zone.js`.
*/ */
__zone_symbol__UNPATCHED_EVENTS?: boolean; __zone_symbol__UNPATCHED_EVENTS?: string[];
/** /**
* Define the event names of the passive listeners. * Define the event names of the passive listeners.
@ -528,7 +528,7 @@ interface ZoneGlobalConfigurations {
* *
* The preceding code makes all scroll event listeners passive. * The preceding code makes all scroll event listeners passive.
*/ */
__zone_symbol__PASSIVE_EVENTS?: boolean; __zone_symbol__PASSIVE_EVENTS?: string[];
/** /**
* Disable wrapping uncaught promise rejection. * Disable wrapping uncaught promise rejection.