word-match-helper
Version:
Aho-Corasick based word-matching class. Match & filter words.
20 lines (19 loc) • 446 B
TypeScript
export declare class Node {
char: string | null;
isMatch: boolean;
parent: Node | null;
backNode: Node | null;
children: Record<string, Node>;
constructor(params: {
char: string | null;
parent?: Node;
back_node?: Node;
is_match?: boolean;
});
getChildNodeList(): Node[];
setChildren(params: {
char: string;
root: Node;
is_match: boolean;
}): Node;
}