Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Trie

Hierarchy

  • Trie

Index

Constructors

constructor

  • new Trie(lastModified?: Date): Trie

Accessors

availableHashtags

  • get availableHashtags(): string[]

size

  • get size(): number

Methods

add

  • add(key: string, ref: string): void
  • deprecated

    Use static methods instead

    Parameters

    • key: string
    • ref: string

    Returns void

search

  • search(query: string): string[]
  • deprecated

    Use static methods instead

    Parameters

    • query: string

    Returns string[]

shouldReindex

  • shouldReindex(lastModified: Date, numberOfNotes: number): boolean
  • deprecated

    Use static methods instead

    Parameters

    • lastModified: Date
    • numberOfNotes: number

    Returns boolean

Static add

  • add(trie: Trie, key: string, ref: string): void

Static buildTrie

  • buildTrie(notes: {}, date?: Date): Trie

Static search

  • search(trie: Trie, query: string): string[]

Static shouldReindex

  • shouldReindex(trie: Trie, lastModified: Date, numberOfNotes: number): boolean
  • Parameters

    • trie: Trie
    • lastModified: Date
    • numberOfNotes: number

    Returns boolean

Generated using TypeDoc