We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d0e45f commit f63ad4eCopy full SHA for f63ad4e
src/types/charTrie.ts
@@ -2,12 +2,12 @@ interface ICharTrieData {
2
[prefix: string]: ICharTrieData;
3
}
4
5
-type Char = string;
6
-interface ICharTrie extends Map<Char, ICharTrie> {
+export type Char = string;
+export interface ICharTrie extends Map<Char, ICharTrie> {
7
[headChar: string]: any | ICharTrie;
8
9
10
-class CharTrie extends Map<Char, CharTrie> implements ICharTrie {
+export class CharTrie extends Map<Char, CharTrie> implements ICharTrie {
11
[headChar: string]: any | CharTrie;
12
13
public static create(trieData: ICharTrieData): CharTrie {
@@ -21,5 +21,3 @@ class CharTrie extends Map<Char, CharTrie> implements ICharTrie {
21
return trie as CharTrie;
22
23
24
-
25
-export { Char, CharTrie, ICharTrie };
0 commit comments