umbr-key-master 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,17 +2,17 @@ import { Alphabet, AudioKey, ControlCharacter, DeviceKey, EditingKey, FunctionKe
|
|
|
2
2
|
/**
|
|
3
3
|
* Helper used to get custom data to pass to your callback when its conditions are met
|
|
4
4
|
*/
|
|
5
|
-
type GetDataCallback = (() => any | Promise<any>) | null;
|
|
5
|
+
export type GetDataCallback = (() => any | Promise<any>) | null;
|
|
6
6
|
/**
|
|
7
7
|
* The key value of a keydown can be mapped from W3C UI Events / DOM spec
|
|
8
8
|
*
|
|
9
9
|
* these are what a keydown / keyup `key` value can be and is what you can pass to listen to specific combinations to trigger logic
|
|
10
10
|
*/
|
|
11
|
-
type PressableKey = Alphabet | ControlCharacter | GlyphModifierKey | SpecialKey | ModifierKey | WhitespaceKey | NavigationKey | EditingKey | UIKey | DeviceKey | IMEKey | FunctionKey | MultimediaKey | MultimediaNumpadKey | AudioKey | SpeechKey;
|
|
11
|
+
export type PressableKey = Alphabet | ControlCharacter | GlyphModifierKey | SpecialKey | ModifierKey | WhitespaceKey | NavigationKey | EditingKey | UIKey | DeviceKey | IMEKey | FunctionKey | MultimediaKey | MultimediaNumpadKey | AudioKey | SpeechKey;
|
|
12
12
|
/**
|
|
13
13
|
* Custom callback to run when the specific keys registered are met
|
|
14
14
|
*/
|
|
15
|
-
type KeyCallback = (...args: any[]) => any | Promise<any>;
|
|
15
|
+
export type KeyCallback = (...args: any[]) => any | Promise<any>;
|
|
16
16
|
/**
|
|
17
17
|
* Represents a key combination manager that holds callbacks to run for specific key combinations
|
|
18
18
|
*/
|
|
@@ -43,4 +43,3 @@ export declare class KeyMaster {
|
|
|
43
43
|
*/
|
|
44
44
|
dispose(): void;
|
|
45
45
|
}
|
|
46
|
-
export {};
|