mirror of
https://github.com/theoludwig/react-component-form.git
synced 2024-07-17 07:30:13 +02:00
style: fix lint:typescript
This commit is contained in:
parent
d1f5430374
commit
079d3f9d50
@ -17,7 +17,9 @@ export interface FormProps extends ReactFormProps {
|
||||
onChange?: HandleForm
|
||||
}
|
||||
|
||||
export const getFormDataObject = (formElement: HTMLFormElement): FormDataObject => {
|
||||
export const getFormDataObject = (
|
||||
formElement: HTMLFormElement
|
||||
): FormDataObject => {
|
||||
return Object.fromEntries<FormDataEntryValue>(new FormData(formElement))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user