@antv/x6-react-components
Version:
React components for building x6 editors
14 lines (13 loc) • 518 B
TypeScript
/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
*/
export declare function isEventSupported(eventNameSuffix: string, capture?: boolean): boolean;