View as Markdown

API reference: @salmonui/dropdowns/select

SelectSearchOperatortype

import type { SelectSearchOperator } from '@salmonui/dropdowns/select';
type SearchOperator<Item = unknown> = 'startsWith' | 'contains' | 'endsWith' | ((item: Item, text: string) => boolean);

A named operator or a predicate over the item and the raw search text.