UNPKG

@blueprintjs/select

Version:

Components related to selecting items from a list

11 lines (10 loc) 439 B
/** * A custom predicate for returning an entirely new `items` array based on the provided query. * See usage sites in `ListItemsProps`. */ export type ItemListPredicate<T> = (query: string, items: T[]) => T[]; /** * A custom predicate for filtering items based on the provided query. * See usage sites in `ListItemsProps`. */ export type ItemPredicate<T> = (query: string, item: T, index?: number, exactMatch?: boolean) => boolean;