From 830b43f05ecea280dd8c8c9115d6aba47de48de0 Mon Sep 17 00:00:00 2001 From: Brandon Marc-Aurele Date: Tue, 1 Nov 2016 08:59:17 -0400 Subject: [PATCH] updated the typing for the creator args (#12365) --- react-select/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-select/index.d.ts b/react-select/index.d.ts index a9c00c9c4d..958298855c 100644 --- a/react-select/index.d.ts +++ b/react-select/index.d.ts @@ -368,7 +368,7 @@ declare namespace ReactSelectClass { /** * factory to create new options */ - newOptionCreator?: (input: string) => Option; + newOptionCreator?: (arg: { label: string, labelKey: string, valueKey: string }) => Option; /** * Creates prompt/placeholder for option text.