mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Event API: use capture for all event listeners using experimental responder system (#15526)
This commit is contained in:
@@ -39,5 +39,11 @@ declare module 'EventListener' {
|
||||
options?: {passive: boolean},
|
||||
) => mixed,
|
||||
capture: (target: Element, type: string, callback: Function) => mixed,
|
||||
captureWithPassiveFlag: (
|
||||
target: Element,
|
||||
type: string,
|
||||
callback: Function,
|
||||
passive: boolean,
|
||||
) => mixed,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user