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:
parent
9d8bb634f9
commit
36e927a8c6
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue