Welshman Docs / @welshman/app / Search
Type Alias: Search<V, T> ​
Search<
V
,T
>:object
Defined in: packages/app/src/search.ts:25
Type Parameters ​
• V
• T
Type declaration ​
getOption() ​
getOption: (
value
) =>T
|undefined
Parameters ​
value ​
V
Returns ​
T
| undefined
getValue() ​
getValue: (
item
) =>V
Parameters ​
item ​
T
Returns ​
V
options ​
options:
T
[]
searchOptions() ​
searchOptions: (
term
) =>T
[]
Parameters ​
term ​
string
Returns ​
T
[]
searchValues() ​
searchValues: (
term
) =>V
[]
Parameters ​
term ​
string
Returns ​
V
[]