(value: unknown)
| 125 | } |
| 126 | |
| 127 | function keybinds(value: unknown): KeybindMap { |
| 128 | if (!value || typeof value !== "object" || Array.isArray(value)) return {} |
| 129 | return value as KeybindMap |
| 130 | } |
| 131 | |
| 132 | function listFor(command: CommandContext, map: KeybindMap, palette: string) { |
| 133 | const out = new Map<string, KeybindMeta>() |