From d5a3cca3ab049841d693ee7b3e5bd67fdc215d89 Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Thu, 12 May 2016 15:19:56 -0700 Subject: [PATCH] Fix react-select --- react-select/index.d.ts | 586 ++++++++++++++-------------- react-select/react-select-tests.tsx | 4 - react-select/tsconfig.json | 2 +- 3 files changed, 292 insertions(+), 300 deletions(-) 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