@baleada/logic 0.23.2 → 0.23.4
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/lib/index.cjs +267 -249
- package/lib/index.d.ts +6 -5
- package/lib/index.js +268 -250
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -873,7 +873,7 @@ type KeypressMetadata = {
|
|
|
873
873
|
type KeypressOptions = {
|
|
874
874
|
minDuration?: number;
|
|
875
875
|
preventsDefaultUnlessDenied?: boolean;
|
|
876
|
-
|
|
876
|
+
toDownKeys?: CreatePredicateKeycomboDownOptions['toDownKeys'];
|
|
877
877
|
toAliases?: CreatePredicateKeycomboMatchOptions$1['toAliases'];
|
|
878
878
|
onDown?: KeypressHook;
|
|
879
879
|
onUp?: KeypressHook;
|
|
@@ -894,7 +894,7 @@ type KeyreleaseMetadata = {
|
|
|
894
894
|
type KeyreleaseOptions = {
|
|
895
895
|
minDuration?: number;
|
|
896
896
|
preventsDefaultUnlessDenied?: boolean;
|
|
897
|
-
|
|
897
|
+
toDownKeys?: CreatePredicateKeycomboDownOptions['toDownKeys'];
|
|
898
898
|
toAliases?: CreatePredicateKeycomboMatchOptions$1['toAliases'];
|
|
899
899
|
onDown?: KeyreleaseHook;
|
|
900
900
|
onUp?: KeyreleaseHook;
|
|
@@ -918,7 +918,7 @@ type KeychordOptions = {
|
|
|
918
918
|
minDuration?: number;
|
|
919
919
|
maxInterval?: number;
|
|
920
920
|
preventsDefaultUnlessDenied?: boolean;
|
|
921
|
-
|
|
921
|
+
toDownKeys?: CreatePredicateKeycomboDownOptions['toDownKeys'];
|
|
922
922
|
toAliases?: CreatePredicateKeycomboMatchOptions$1['toAliases'];
|
|
923
923
|
onDown?: KeychordHook;
|
|
924
924
|
onUp?: KeychordHook;
|
|
@@ -1009,7 +1009,7 @@ type Expand<T> = T extends infer O ? {
|
|
|
1009
1009
|
} : never;
|
|
1010
1010
|
|
|
1011
1011
|
type CreatePredicateKeycomboDownOptions = {
|
|
1012
|
-
|
|
1012
|
+
toDownKeys?: (alias: string) => KeyStatusKey[];
|
|
1013
1013
|
};
|
|
1014
1014
|
|
|
1015
1015
|
type CreatePredicateKeycomboMatchOptions$1 = CreatePredicateKeycomboDownOptions & {
|
|
@@ -1244,7 +1244,8 @@ declare function createToGraph<TreeNode>(options?: CreateToGraphOptions<TreeNode
|
|
|
1244
1244
|
|
|
1245
1245
|
type KeyboardEventFn<Returned> = (keyboardEvent: KeyboardEvent) => Returned;
|
|
1246
1246
|
type CreatePredicateKeycomboMatchOptions = {
|
|
1247
|
-
|
|
1247
|
+
toDownKeys?: (alias: string) => KeyStatusKey[];
|
|
1248
|
+
toAliases?: (event: KeyboardEvent) => string[];
|
|
1248
1249
|
};
|
|
1249
1250
|
declare const createPredicateKeycomboMatch: (keycombo: string, options?: CreatePredicateKeycomboMatchOptions) => KeyboardEventFn<boolean>;
|
|
1250
1251
|
|