@jakechampion/cli-testing-library
Version:
Small but powerful library for testing CLI the way it is used by people.
19 lines (18 loc) • 405 B
TypeScript
declare const keyMap: {
arrowDown: string;
arrowLeft: string;
arrowRight: string;
arrowUp: string;
backSpace: string;
delete: string;
end: string;
enter: string;
escape: string;
home: string;
pageUp: string;
pageDown: string;
space: string;
};
export type KeyMap = keyof typeof keyMap;
export declare const keyToHEx: (key: KeyMap) => string;
export {};