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. */