Skip to content

Commit 926d7b5

Browse files
committed
refactor(FormHelper): update form type to InertiaFormRunes
Replace InertiaForm with InertiaFormRunes in Child.svelte and update prop destructuring to use $props(). This aligns the component with the latest type definitions from @inertiajs/svelte5.
1 parent 45e7d6a commit 926d7b5

File tree

1 file changed

+5
-5
lines changed
  • packages/svelte5/test-app/Pages/FormHelper/TypeScript

1 file changed

+5
-5
lines changed

packages/svelte5/test-app/Pages/FormHelper/TypeScript/Child.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<script lang="ts">
22
// This component is used for checking the TypeScript implementation; there is no Playwright test depending on it.
3-
import type { InertiaForm } from '@inertiajs/svelte5'
3+
import type { InertiaFormRunes } from '@inertiajs/svelte5'
44
5-
export let form: InertiaForm<{
6-
name: string
7-
email?: string
8-
}>
5+
const { form }: { form: InertiaFormRunes<{
6+
name: string;
7+
email?: string;
8+
}> } = $props()
99
</script>
1010

1111
<p>Name: {form.name}</p>

0 commit comments

Comments
 (0)