Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BaseSearchOptions<T>

Type parameters

  • T = unknown

Hierarchy

Index

Properties

Properties

Optional getItemValue

getItemValue: GetItemValue<T>

A function that will get a string value from each item. The default implementation will:

  • return a number as a string
  • return a string as itself
  • return the result of item() if it is a function (this will also be used if the valueKey on an object is a function).
  • return item[valueKey] if it's an object (this uses typeof item === "object")
  • return the empty string for all other data types

Optional valueKey

valueKey: string

The key to use to get a value string if the item is an object.

Generated using TypeDoc