HotkeyDispatchContext
interface exported by @mwillbanks/tuil-hotkeys.
interface
Public interface exported by @mwillbanks/tuil-hotkeys.
export interface HotkeyDispatchContext {
readonly activeScopes?:
| Partial<Record<HotkeyScope, string | true>>
| (() => Partial<Record<HotkeyScope, string | true>>);
readonly platform?: NodeJS.Platform;
readonly onError?: (error: unknown) => void;
readonly allowApplication?: boolean;
}Members
| Member | Type | Required | Description | Related types |
|---|---|---|---|---|
activeScopes | Partial<Record<HotkeyScope, string | true>> | (() => Partial<Record<HotkeyScope, string | true>>) | undefined | No | The activeScopes member uses the Partial<Record<HotkeyScope, string | true>> | (() => Partial<Record<HotkeyScope, string | true>>) | undefined contract. | HotkeyScope |
platform | NodeJS.Platform | undefined | No | The platform member uses the NodeJS.Platform | undefined contract. | — |
onError | ((error: unknown) => void) | undefined | No | The onError member uses the ((error: unknown) => void) | undefined contract. | — |
allowApplication | boolean | undefined | No | The allowApplication member uses the boolean | undefined contract. | — |
Parameters
This declaration has no public members.
Returns
This declaration does not return a value.
Throws
No thrown errors are documented for this declaration.
Related types
Source
View the secondary source reference