Type alias SearchResult<T>

SearchResult<T>: {
    item: T;
    qualifier: ((query) => boolean);
} | T

Data structure containing the subject (T) of the search as well as a "qualifier" function for further constraining results

Type Parameters

  • T

Type declaration

  • item: T
  • qualifier: ((query) => boolean)
      • (query): boolean
      • Parameters

        • query: string

        Returns boolean

Generated using TypeDoc