UNPKG

downshift

Version:

🏎 A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete, combobox or select dropdown components.

6 lines (5 loc) 277 B
import { GetInitialStateProps as GetInitialStatePropsCommon } from '../../utils'; export type GetInitialStateProps<T> = GetInitialStatePropsCommon<T> & { itemToString: (item: T) => string; }; export declare function getInitialState<T>(props: GetInitialStateProps<T>): any;