Skip to content

Welshman Docs / @welshman/app / SearchOptions

Type Alias: SearchOptions<V, T> ​

SearchOptions<V, T>: object

Defined in: packages/app/src/search.ts:18

Type Parameters ​

• V

• T

Type declaration ​

fuseOptions? ​

optional fuseOptions: IFuseOptions<T>

getValue() ​

getValue: (item) => V

Parameters ​

item ​

T

Returns ​

V

onSearch()? ​

optional onSearch: (term) => void

Parameters ​

term ​

string

Returns ​

void

sortFn()? ​

optional sortFn: (items) => any

Parameters ​

items ​

FuseResult<T>

Returns ​

any