DefinitelyTyped/types/parse-key/index.d.ts
2020-08-27 20:05:20 -04:00

17 lines
427 B
TypeScript

// Type definitions for parse-key 0.2
// Project: https://github.com/thlorenz/parse-key
// Definitions by: Nathan Bierema <https://github.com/Methuselah96>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface KeyObject {
name: string;
ctrl: boolean;
meta: boolean;
shift: boolean;
alt: boolean;
sequence: string;
}
declare function parse(s: string): KeyObject;
export = parse;