Skip to content

Commit f63ad4e

Browse files
Update export technique to fix "build" script
Fix build error: Exporting local "Char", which is not declared.
1 parent 6d0e45f commit f63ad4e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/types/charTrie.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ interface ICharTrieData {
22
[prefix: string]: ICharTrieData;
33
}
44

5-
type Char = string;
6-
interface ICharTrie extends Map<Char, ICharTrie> {
5+
export type Char = string;
6+
export interface ICharTrie extends Map<Char, ICharTrie> {
77
[headChar: string]: any | ICharTrie;
88
}
99

10-
class CharTrie extends Map<Char, CharTrie> implements ICharTrie {
10+
export class CharTrie extends Map<Char, CharTrie> implements ICharTrie {
1111
[headChar: string]: any | CharTrie;
1212

1313
public static create(trieData: ICharTrieData): CharTrie {
@@ -21,5 +21,3 @@ class CharTrie extends Map<Char, CharTrie> implements ICharTrie {
2121
return trie as CharTrie;
2222
}
2323
}
24-
25-
export { Char, CharTrie, ICharTrie };

0 commit comments

Comments
 (0)