From c9faff23d973957542632073f3ce3c578cda96b2 Mon Sep 17 00:00:00 2001 From: asaarnak Date: Wed, 6 Jun 2018 11:14:25 +0300 Subject: [PATCH] Fix OnInputChangeHandler type. https://github.com/JedWatson/react-select/tree/v1.2.1#updating-input-values-with-oninputchange --- types/react-select/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-select/index.d.ts b/types/react-select/index.d.ts index e2a0520154..6d8bc6d8c7 100644 --- a/types/react-select/index.d.ts +++ b/types/react-select/index.d.ts @@ -40,7 +40,7 @@ export type FilterOptionsHandler = (options: Options HandlerRendererResult; export type MenuRendererHandler = (props: MenuRendererProps) => HandlerRendererResult; export type OnCloseHandler = () => void; -export type OnInputChangeHandler = (inputValue: string) => void; +export type OnInputChangeHandler = (inputValue: string) => string; export type OnInputKeyDownHandler = React.KeyboardEventHandler; export type OnMenuScrollToBottomHandler = () => void; export type OnOpenHandler = () => void;