Skip to content

Commit 0fd1a45

Browse files
authored
docs: fix generic props type (#13792)
1 parent dbba2b0 commit 0fd1a45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/docs/07-misc/03-typescript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Components can declare a generic relationship between their properties. One exam
115115
<script lang="ts" generics="Item extends { text: string }">
116116
interface Props {
117117
items: Item[];
118-
select: Item;
118+
select(item: Item): void;
119119
}
120120
121121
let { items, select }: Props = $props();

0 commit comments

Comments
 (0)