mirror of
https://github.com/c-degni/text-autocomplete.git
synced 2026-07-22 05:49:39 +00:00
7 lines
No EOL
186 B
TypeScript
7 lines
No EOL
186 B
TypeScript
import { Trie } from './trie';
|
|
import { DEFAULT_WORDS } from './words'
|
|
|
|
let DEFAULT_TRIE = new Trie();
|
|
DEFAULT_WORDS.forEach(word => DEFAULT_TRIE.insert(word));
|
|
|
|
export { DEFAULT_TRIE }; |