Skip to content

Commit

Permalink
more accurate ts definition for FormDataType
Browse files Browse the repository at this point in the history
  • Loading branch information
joetannenbaum committed Jan 9, 2025
1 parent 93af171 commit 8bc7fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue3/src/useForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import cloneDeep from 'lodash.clonedeep'
import isEqual from 'lodash.isequal'
import { reactive, watch } from 'vue'

type FormDataType = object
type FormDataType = Record<string, FormDataConvertible>
type FormOptions = Omit<VisitOptions, 'data'>

interface InertiaFormProps<TForm extends FormDataType> {
Expand Down

0 comments on commit 8bc7fc4

Please sign in to comment.