Add infrastructure for passive/non-passive event support for future API exploration (#15036)

* Add infrastructure for passive/non-passive event support for future event API experimentation
This commit is contained in:
Dominic Gannaway
2019-03-15 09:39:43 +00:00
committed by GitHub
parent ab5fe174c6
commit 371bbf36bb
11 changed files with 240 additions and 101 deletions
+7 -1
View File
@@ -31,7 +31,13 @@ declare module 'ReactFiberErrorDialog' {
// EventListener www fork
declare module 'EventListener' {
declare module.exports: {
listen: (target: Element, type: string, callback: Function) => mixed,
listen: (
target: Element,
type: string,
callback: Function,
priority?: number,
options?: {passive: boolean},
) => mixed,
capture: (target: Element, type: string, callback: Function) => mixed,
};
}