Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Commit f11c8ff

Browse files
josephlicciniCaerusKaru
authored andcommitted
fix(typings): accept multiple events (#108)
- The current behavior is that the "events" and "keycodes" property are allowed an array of one item. - The new behavior is that these properties now may have an array of any length.
1 parent b4f367e commit f11c8ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/common/preboot.interfaces.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
// This is used to identify which events to listen for and what we do with them
99
export interface EventSelector {
1010
selector: string; // same as jQuery; selector for nodes
11-
events: [string]; // array of event names to listen for
12-
keyCodes?: [number]; // key codes to watch out for
11+
events: string[]; // array of event names to listen for
12+
keyCodes?: number[]; // key codes to watch out for
1313
preventDefault?: boolean; // will prevent default handlers if true
1414
freeze?: boolean; // if true, the UI will freeze when this event occurs
1515
action?: Function; // custom action to take with this event

0 commit comments

Comments
 (0)