types.ts
1 import type { SetOptional } from 'type-fest'; 2 3 import type { ToReadonly } from '@/types/util'; 4 5 export interface Hotkey { 6 mods: number; 7 key: string; 8 } 9 export type ReadonlyHotkey = ToReadonly<Hotkey>; 10 11 export type PartialHotkey = SetOptional<Hotkey, 'key'>; 12 export type ReadonlyPartialHotkey = ToReadonly<PartialHotkey>;