Files
tabby/terminus-core/src/api/hotkeyProvider.ts
2019-06-14 23:47:48 +02:00

15 lines
366 B
TypeScript

export interface HotkeyDescription {
id: string
name: string
}
/**
* Extend to provide your own hotkeys. A corresponding [[ConfigProvider]]
* must also provide the `hotkeys.foo` config options with the default values
*/
export abstract class HotkeyProvider {
hotkeys: HotkeyDescription[] = []
abstract provide (): Promise<HotkeyDescription[]>
}