UNPKG

@triply/yasqe

Version:

Yet Another SPARQL Query Editor

14 lines (13 loc) 461 B
export default class Trie { private words; private prefixes; private children; insert(str: string, pos?: number): void; remove(str: string, pos?: number): void; update(strOld: string, strNew: string): void; countWord(str: string, pos?: number): number; countPrefix(str: string, pos: number): number; find(str: string): boolean; getAllWords(str: string): string[]; autoComplete(str: string, pos?: number): string[]; }