Constructors
constructor
- new Trie(lastModified?: Date): Trie
Accessors
availableHashtags
- get availableHashtags(): string[]
Methods
add
- add(key: string, ref: string): void
search
- search(query: string): string[]
-
Parameters
Returns string[]
shouldReindex
- shouldReindex(lastModified: Date, numberOfNotes: number): boolean
-
Parameters
-
lastModified: Date
-
numberOfNotes: number
Returns boolean
Static add
- add(trie: Trie, key: string, ref: string): void
Static buildTrie
- buildTrie(notes: {}, date?: Date): Trie
-
Parameters
-
notes: {}
-
[internalRef: string]: Note
-
date: Date = ...
Static search
- search(trie: Trie, query: string): string[]
-
Parameters
Returns string[]
Static shouldReindex
- shouldReindex(trie: Trie, lastModified: Date, numberOfNotes: number): boolean
-
Parameters
-
-
lastModified: Date
-
numberOfNotes: number
Returns boolean
Use static methods instead