event.d.ts 517 B

12345678
  1. export declare const composeEventHandlers: <E>(theirsHandler?: (event: E) => boolean | void, oursHandler?: (event: E) => void, { checkForDefaultPrevented }?: {
  2. checkForDefaultPrevented?: boolean | undefined;
  3. }) => (event: E) => void;
  4. type WhenMouseHandler = (e: PointerEvent) => any;
  5. export declare const whenMouse: (handler: WhenMouseHandler) => WhenMouseHandler;
  6. export declare const getEventCode: (event: KeyboardEvent) => string;
  7. export declare const getEventKey: (event: KeyboardEvent) => string;
  8. export {};