Skip to content

Commit

Permalink
Replace export * with enumerated exports for explicitness
Browse files Browse the repository at this point in the history
  • Loading branch information
iansan5653 committed Oct 10, 2023
1 parent b0728e0 commit 3ab3218
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/index.ts
Expand Up @@ -3,8 +3,9 @@ import {fireDeterminedAction, expandHotkeyToEdges, isFormField} from './utils'
import {SequenceTracker} from './sequence'
import {eventToHotkeyString} from './hotkey'

export * from './hotkey'
export * from './sequence'
export {eventToHotkeyString, normalizeHotkey, type NormalizedHotkeyString} from './hotkey'
export {SequenceTracker, normalizeSequence, type NormalizedSequenceString} from './sequence'
export {RadixTrie, Leaf} from './radix-trie'

const hotkeyRadixTrie = new RadixTrie<HTMLElement>()
const elementsLeaves = new WeakMap<HTMLElement, Array<Leaf<HTMLElement>>>()
Expand Down Expand Up @@ -59,8 +60,6 @@ function keyDownHandler(event: KeyboardEvent) {
}
}

export {RadixTrie, Leaf}

export function install(element: HTMLElement, hotkey?: string): void {
// Install the keydown handler if this is the first install
if (Object.keys(hotkeyRadixTrie.children).length === 0) {
Expand Down

0 comments on commit 3ab3218

Please sign in to comment.