Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 1723295

Browse files
authored
Improve getValue typings
1 parent b36ecf8 commit 1723295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react-redux-form.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export interface ControlProps<T> extends React.HTMLProps<T> {
226226
/**
227227
* Determines the value given the event (from onChange) and optionally the control component's props.
228228
*/
229-
getValue?: (e: Event, props: any) => any;
229+
getValue?: (e: ChangeEvent<T> | string, props: any) => any;
230230
/**
231231
* Signifies that the control is a toggle (e.g., a checkbox or a radio). If true, then some optimizations are made.
232232
*/

0 commit comments

Comments
 (0)