Skip to content

Commit ae384b2

Browse files
committed
Fix Interia based form types.
Requires inertiajs/inertia#1734 to be published to a new version.
1 parent d891dad commit ae384b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-inertia/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useRef } from 'react'
55

66
export { client }
77

8-
export const useForm = <Data extends Record<string, unknown>>(method: RequestMethod|(() => RequestMethod), url: string|(() => string), inputs: Data, config: ValidationConfig = {}): any => {
8+
export const useForm = <Data extends Record<string, unknown>>(method: RequestMethod|(() => RequestMethod), url: string|(() => string), inputs: Data, config: ValidationConfig = {}) => {
99
const booted = useRef<boolean>(false)
1010

1111
/**

packages/vue-inertia/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { watchEffect } from 'vue'
55

66
export { client }
77

8-
export const useForm = <Data extends Record<string, unknown>>(method: RequestMethod|(() => RequestMethod), url: string|(() => string), inputs: Data, config: ValidationConfig = {}): any => {
8+
export const useForm = <Data extends Record<string, unknown>>(method: RequestMethod|(() => RequestMethod), url: string|(() => string), inputs: Data, config: ValidationConfig = {}) => {
99
/**
1010
* The Inertia form.
1111
*/

0 commit comments

Comments
 (0)