UNPKG

457 BTypeScriptView Raw
1/**
2 * A custom predicate for returning an entirely new `items` array based on the provided query.
3 * See usage sites in `IListItemsProps`.
4 */
5export declare type ItemListPredicate<T> = (query: string, items: T[]) => T[];
6/**
7 * A custom predicate for filtering items based on the provided query.
8 * See usage sites in `IListItemsProps`.
9 */
10export declare type ItemPredicate<T> = (query: string, item: T, index?: number, exactMatch?: boolean) => boolean;