You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
517 B
TypeScript
9 lines
517 B
TypeScript
|
3 months ago
|
export declare const composeEventHandlers: <E>(theirsHandler?: (event: E) => boolean | void, oursHandler?: (event: E) => void, { checkForDefaultPrevented }?: {
|
||
|
|
checkForDefaultPrevented?: boolean | undefined;
|
||
|
|
}) => (event: E) => void;
|
||
|
|
type WhenMouseHandler = (e: PointerEvent) => any;
|
||
|
|
export declare const whenMouse: (handler: WhenMouseHandler) => WhenMouseHandler;
|
||
|
|
export declare const getEventCode: (event: KeyboardEvent) => string;
|
||
|
|
export declare const getEventKey: (event: KeyboardEvent) => string;
|
||
|
|
export {};
|