react-datalist-input/index.d.ts
2019-08-28 07:45:52 +01:00

34 lines
998 B
TypeScript

declare module 'react-datalist-input' {
import * as React from 'react';
export interface DataListInputItem {
key: string | number;
label: string;
}
export interface DataListInputProperties {
items: DataListInputItem[];
onSelect: (selectedItem: DataListInputItem) => void;
match?: (currentInput: string, item: DataListInputItem) => boolean;
placeholder?: string;
itemClassName?: string;
activeItemClassName?: string;
inputClassName?: string;
dropdownClassName?: string;
requiredInputLength?: number;
clearInputOnSelect?: boolean;
suppressReselect?: boolean;
dropDownLength?: number;
initialValue?: string;
onDropdownOpen?: () => void;
onDropdownClose?: () => void;
debounceTime?: number;
debounceLoader?: React.ReactNode;
}
export default class DataListInput extends React.Component<DataListInputProperties> {
}
}