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

Commit b342c48

Browse files
authored
Merge pull request #1130 from valorize/master
Improve getValue typing
2 parents 05b53e7 + 1723295 commit b342c48

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
@@ -232,7 +232,7 @@ export interface ControlProps<T> extends React.HTMLProps<T> {
232232
/**
233233
* Determines the value given the event (from onChange) and optionally the control component's props.
234234
*/
235-
getValue?: (e: Event, props: any) => any;
235+
getValue?: (e: ChangeEvent<T> | string, props: any) => any;
236236
/**
237237
* Signifies that the control is a toggle (e.g., a checkbox or a radio). If true, then some optimizations are made.
238238
*/

0 commit comments

Comments
 (0)