Skip to content

Commit

Permalink
Fix Interia based form types
Browse files Browse the repository at this point in the history
Requires inertiajs/inertia#1734 to be published to a new version.
  • Loading branch information
Spice-King committed Nov 22, 2023
1 parent d891dad commit 1d22735
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-inertia/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useRef } from 'react'

export { client }

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

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-inertia/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { watchEffect } from 'vue'

export { client }

export const useForm = <Data extends Record<string, unknown>>(method: RequestMethod|(() => RequestMethod), url: string|(() => string), inputs: Data, config: ValidationConfig = {}): any => {
export const useForm = <Data extends Record<string, unknown>>(method: RequestMethod|(() => RequestMethod), url: string|(() => string), inputs: Data, config: ValidationConfig = {}) => {
/**
* The Inertia form.
*/
Expand Down

0 comments on commit 1d22735

Please sign in to comment.