8000 reexport radix-trie so we can use them in tests · JavaScriptExpert/hotkey@31da2ac · GitHub
[go: up one dir, main page]

Skip to content

Commit 31da2ac

Browse files
committed
reexport radix-trie so we can use them in tests
1 parent 412f4ce commit 31da2ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ document.addEventListener('keydown', (event: KeyboardEvent) => {
3939
}
4040
})
4141

42+
export {RadixTrie, Leaf}
43+
4244
export function install(element: HTMLElement) {
4345
const hotkeys = expandHotkeyToEdges(element.getAttribute('data-hotkey') || '')
4446
const leaves = hotkeys.map(hotkey => hotkeyRadixTrie.insert(hotkey).add(element))

0 commit comments

Comments
 (0)
0