the-forest/client/node_modules/@testing-library/user-event/dist/keyboard/getEventProps.d.ts

18 lines
523 B
TypeScript
Raw Normal View History

2024-09-17 20:35:18 -04:00
import { keyboardKey, keyboardState } from './types';
export declare function getKeyEventProps(keyDef: keyboardKey, state: keyboardState): {
key: string | undefined;
code: string | undefined;
altKey: boolean;
ctrlKey: boolean;
metaKey: boolean;
shiftKey: boolean;
/** @deprecated use code instead */
keyCode: number | undefined;
};
export declare function getMouseEventProps(state: keyboardState): {
altKey: boolean;
ctrlKey: boolean;
metaKey: boolean;
shiftKey: boolean;
};