UNPKG

j-react-search-autocomplete

Version:
18 lines (17 loc) 639 B
/// <reference types="react" /> export declare type Item<T> = T & { [key: string]: any; }; export interface ResultsProps<T> { results: Item<T>[]; onClick: Function; highlightedItem: number; setHighlightedItem: Function; setSearchString: Function; formatResult?: Function; showIcon: boolean; maxResults: number; resultStringKeyName: string; CustomSearchIcon?: Function; } export default function Results<T>({ results, onClick, setSearchString, showIcon, maxResults, resultStringKeyName, highlightedItem, setHighlightedItem, formatResult, CustomSearchIcon }: ResultsProps<T>): JSX.Element | null;