Chore: minor changes

This commit is contained in:
SukkaW
2024-05-27 02:42:56 +08:00
parent eb0623c1a9
commit efa34399b0
7 changed files with 94 additions and 68 deletions

View File

@@ -1,8 +1,8 @@
interface Node {
/** @default false */
wordEnd?: boolean,
wordEnd: boolean,
children: Map<string, Node | undefined>,
fail?: Node
fail: Node | undefined
}
const createNode = (): Node => ({