diff --git a/react-select/index.d.ts b/react-select/index.d.ts index 3fc9d0209f..3a91090076 100644 --- a/react-select/index.d.ts +++ b/react-select/index.d.ts @@ -3,304 +3,300 @@ // Definitions by: ESQUIBET Hugo , Gilad Gray // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +import * as React from 'react'; -declare namespace ReactSelect { +export as namespace ReactSelect; - interface Option { - /** Text for rendering */ - label: string; - /** Value for searching */ - value: string | number; - /** - * Allow this option to be cleared - * @default true - */ - clearableValue?: boolean; - } - - interface ReactSelectProps extends __React.Props { - /** - * text to display when `allowCreate` is true. - * @default 'Add "{label}"?' - */ - addLabelText?: string; - /** - * blurs the input element after a selection has been made. Handy for lowering the keyboard on mobile devices. - * @default false - */ - autoBlur?: boolean; - /** - * allow new options to be created in multi mode (displays an "Add