Skip to content

Commit

Permalink
Fix form helper transform return type in React adapter (#1896)
Browse files Browse the repository at this point in the history
  • Loading branch information
rejin-r committed Jun 17, 2024
1 parent eb19b39 commit 331793a
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 @@ -18,7 +18,7 @@ export interface InertiaFormProps<TForm extends FormDataType> {
wasSuccessful: boolean
recentlySuccessful: boolean
setData: setDataByObject<TForm> & setDataByMethod<TForm> & setDataByKeyValuePair<TForm>
transform: (callback: (data: TForm) => TForm) => void
transform: (callback: (data: TForm) => object) => void
setDefaults(): void
setDefaults(field: keyof TForm, value: FormDataConvertible): void
setDefaults(fields: Partial<TForm>): void
Expand Down

0 comments on commit 331793a

Please sign in to comment.