export default class TrieNode { children: { [key: string]: TrieNode }; isEndOfWord: boolean; constructor() { this.children = {}; this.isEndOfWord = false; } }