From ae384b24947fccb4f1898c7f70ac157daf281f9e Mon Sep 17 00:00:00 2001 From: Kyle Filz Date: Wed, 22 Nov 2023 15:16:10 -0600 Subject: [PATCH] Fix Interia based form types. Requires inertiajs/inertia#1734 to be published to a new version. --- packages/react-inertia/src/index.ts | 2 +- packages/vue-inertia/src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-inertia/src/index.ts b/packages/react-inertia/src/index.ts index fcfe801..badc26d 100644 --- a/packages/react-inertia/src/index.ts +++ b/packages/react-inertia/src/index.ts @@ -5,7 +5,7 @@ import { useRef } from 'react' export { client } -export const useForm = >(method: RequestMethod|(() => RequestMethod), url: string|(() => string), inputs: Data, config: ValidationConfig = {}): any => { +export const useForm = >(method: RequestMethod|(() => RequestMethod), url: string|(() => string), inputs: Data, config: ValidationConfig = {}) => { const booted = useRef(false) /** diff --git a/packages/vue-inertia/src/index.ts b/packages/vue-inertia/src/index.ts index 4250996..84e51ea 100644 --- a/packages/vue-inertia/src/index.ts +++ b/packages/vue-inertia/src/index.ts @@ -5,7 +5,7 @@ import { watchEffect } from 'vue' export { client } -export const useForm = >(method: RequestMethod|(() => RequestMethod), url: string|(() => string), inputs: Data, config: ValidationConfig = {}): any => { +export const useForm = >(method: RequestMethod|(() => RequestMethod), url: string|(() => string), inputs: Data, config: ValidationConfig = {}) => { /** * The Inertia form. */