From cd4b2b6aa19dda8b7c21ce079f70814b1bda7579 Mon Sep 17 00:00:00 2001 From: Artem Roshko Date: Wed, 16 Nov 2016 00:07:19 +0500 Subject: [PATCH] Optional parameters for Option interface (#12681) --- react-select/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react-select/index.d.ts b/react-select/index.d.ts index 1d98fb2a72..6ee7d498b1 100644 --- a/react-select/index.d.ts +++ b/react-select/index.d.ts @@ -20,9 +20,9 @@ declare namespace ReactSelectClass { export interface Option { /** Text for rendering */ - label: string; + label?: string; /** Value for searching */ - value: string | number; + value?: string | number; /** * Allow this option to be cleared * @default true