1
1
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:
divlo 2021-06-17 19:34:49 +02:00
parent d1f5430374
commit 079d3f9d50

View File

@ -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))
}