mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user