UNPKG

react-bootstrap-typeahead

Version:
49 lines (48 loc) 1.15 kB
import { noop } from '../utils/nodash'; export declare const defaultProps: { allowNew: boolean; autoFocus: boolean; caseSensitive: boolean; children: typeof noop; defaultInputValue: string; defaultOpen: boolean; defaultSelected: never[]; filterBy: never[]; highlightOnlyResult: boolean; ignoreDiacritics: boolean; labelKey: string; maxResults: number; minLength: number; multiple: boolean; onBlur: typeof noop; onFocus: typeof noop; onInputChange: typeof noop; onKeyDown: typeof noop; onMenuToggle: typeof noop; onPaginate: typeof noop; options: never[]; paginate: boolean; }; export declare const defaultState: { activeIndex: number; activeItem: undefined; initialItem: undefined; isFocused: boolean; selected: never[]; showMenu: boolean; shownResults: number; text: string; }; export interface Option { name: string; population: number; capital: string; region: string; } declare const _default: { name: string; population: number; capital: string; region: string; }[]; export default _default;