Skip to content

Commit 82a5b13

Browse files
authored
fix(types): Type string is not assignable to type Method | undefined
Replaced the generic string type with the Method type from @inertiajs/core for better type safety and alignment with Inertia.js.
1 parent 6428357 commit 82a5b13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resources/js/components/TextLink.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<script setup lang="ts">
2+
import { Method } from '@inertiajs/core';
23
import { Link } from '@inertiajs/vue3';
34
45
interface Props {
56
href: string;
67
tabindex?: number;
7-
method?: string;
8+
method?: Method;
89
as?: string;
910
}
1011

0 commit comments

Comments
 (0)