Skip to content

Commit 142fe17

Browse files
committed
refactor(FormHelper): update to use InertiaFormRunes type
Replace InertiaForm with InertiaFormRunes in Generic.svelte to align with updated type definitions from @inertiajs/svelte5. Adjust form prop usage to destructure from $props().
1 parent 926d7b5 commit 142fe17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<script lang="ts" generics="TFormData extends Record<string, FormDataConvertible>">
22
// This component is used for checking the TypeScript implementation; there is no Playwright test depending on it.
33
import type { FormDataConvertible } from '@inertiajs/core'
4-
import type { InertiaForm } from '@inertiajs/svelte5'
4+
import type { InertiaFormRunes } from '@inertiajs/svelte5'
55
6-
export let form: InertiaForm<TFormData>
6+
const { form }: { form: InertiaFormRunes<TFormData> } = $props()
77
</script>
88

99
<div>{form}</div>

0 commit comments

Comments
 (0)