From 1723295a1aa84aaf5adbecc1327f3621a5d787ae Mon Sep 17 00:00:00 2001 From: valorize Date: Wed, 28 Mar 2018 10:43:52 +0200 Subject: [PATCH] Improve getValue typings --- react-redux-form.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-redux-form.d.ts b/react-redux-form.d.ts index 67e381b61..b958fbbda 100644 --- a/react-redux-form.d.ts +++ b/react-redux-form.d.ts @@ -226,7 +226,7 @@ export interface ControlProps extends React.HTMLProps { /** * Determines the value given the event (from onChange) and optionally the control component's props. */ - getValue?: (e: Event, props: any) => any; + getValue?: (e: ChangeEvent | string, props: any) => any; /** * Signifies that the control is a toggle (e.g., a checkbox or a radio). If true, then some optimizations are made. */