// Type definitions for react-select v1.0.0 // Project: https://github.com/JedWatson/react-select // Definitions by: ESQUIBET Hugo , Gilad Gray // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// declare namespace ReactSelect { interface AutocompleteResult { /** the search-results to be displayed */ data: Option[], /** Should be set to true, if and only if a longer query with the same prefix * would return a subset of the results * If set to true, more specific queries will not be sent to the server. **/ complete: boolean; } interface Option { /** Text for rendering */ label: string; /** Value for searching */ value: string | number; /** * Allow this option to be cleared * @default true */ clearableValue?: boolean; } interface MenuRendererProps { /** * The currently focused option; should be visible in the menu by default. * default {} */ focusedOption: Option; /** * Callback to focus a new option; receives the option as a parameter. */ focusOption: (option: Option) => void; /** * Option labels are accessible with this string key. */ labelKey: string; /** * Ordered array of options to render. */ options: Option[]; /** * Callback to select a new option; receives the option as a parameter. */ selectValue: (option: Option) => void; /** * Array of currently selected options. */ valueArray: Option[]; } interface ReactSelectProps extends __React.Props { /** * text to display when `allowCreate` is true. * @default 'Add "{label}"?' */ addLabelText?: string; /** * allow new options to be created in multi mode (displays an "Add