react-aria
Version:
Spectrum UI components in React
8 lines (7 loc) • 360 B
TypeScript
import { BaseEvent } from '@react-types/shared';
import { SyntheticEvent } from 'react';
/**
* This function wraps a React event handler to make stopPropagation the default, and support
* continuePropagation instead.
*/
export declare function createEventHandler<T extends SyntheticEvent>(handler?: (e: BaseEvent<T>) => void): ((e: T) => void) | undefined;