Skip to content

Commit

Permalink
document transform method
Browse files Browse the repository at this point in the history
  • Loading branch information
zephraph committed Nov 30, 2023
1 parent d1d7c39 commit 41d47a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/components/form/fields/TextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ export interface TextFieldProps<
units?: string
validate?: Validate<FieldPathValue<TFieldValues, TName>, TFieldValues>
control: Control<TFieldValues>
/**
* This function can be provided to alter the value of the input
* as the input is changed
*/
transform?: (value: Type) => Type | undefined
}

Expand Down

0 comments on commit 41d47a9

Please sign in to comment.