Skip to content

Commit

Permalink
Update packages/react/src/useForm.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Pedro Borges <[email protected]>
  • Loading branch information
joetannenbaum and pedroborges authored Jan 9, 2025
1 parent de602d2 commit 93af171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/useForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import useRemember from './useRemember'
type setDataByObject<TForm> = (data: TForm) => void
type setDataByMethod<TForm> = (data: (previousData: TForm) => TForm) => void
type setDataByKeyValuePair<TForm> = <K extends keyof TForm>(key: K, value: TForm[K]) => void
type FormDataType = object
type FormDataType = Record<string, FormDataConvertible>
type FormOptions = Omit<VisitOptions, 'data'>

export interface InertiaFormProps<TForm extends FormDataType> {
Expand Down

0 comments on commit 93af171

Please sign in to comment.