diff --git a/data_structures/tries/tries.ts b/data_structures/tries/tries.ts index 78dc1432..ee7ce774 100644 --- a/data_structures/tries/tries.ts +++ b/data_structures/tries/tries.ts @@ -5,7 +5,7 @@ class TrieNode { /** * An object that stores child nodes for each character in the alphabet. */ - children: { [key: string]: TrieNode } = {} + children: Record = {} /** * Indicates whether the node represents the end of a word.