Skip to content

Commit bdde9a2

Browse files
fix types
1 parent 9b8fe6d commit bdde9a2

File tree

1 file changed

+2
-2
lines changed
  • app/gui/src/dashboard/components/AriaComponents/Form/components

1 file changed

+2
-2
lines changed

app/gui/src/dashboard/components/AriaComponents/Form/components/useForm.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function mapValueOnEvent(value: unknown) {
4343
* Otherwise you'll be fired
4444
*/
4545
export function useForm<Schema extends types.TSchema, SubmitResult = void>(
46-
optionsOrFormInstance: types.UseFormProps<Schema, SubmitResult> | types.UseFormReturn<Schema>,
46+
optionsOrFormInstance: types.UseFormOptions<Schema, SubmitResult> | types.UseFormReturn<Schema>,
4747
): types.UseFormReturn<Schema> {
4848
const { getText } = useText()
4949
const [initialTypePassed] = React.useState(() => getArgsType(optionsOrFormInstance))
@@ -242,7 +242,7 @@ export function useForm<Schema extends types.TSchema, SubmitResult = void>(
242242

243243
/** Get the type of arguments passed to the useForm hook */
244244
function getArgsType<Schema extends types.TSchema, SubmitResult = void>(
245-
args: types.UseFormProps<Schema, SubmitResult>,
245+
args: types.UseFormOptions<Schema, SubmitResult>,
246246
) {
247247
return 'formState' in args ? ('formInstance' as const) : ('formOptions' as const)
248248
}

0 commit comments

Comments
 (0)