docs: fix generic props type (#13792)

pull/13800/head
wackbyte 2 months ago committed by GitHub
parent dbba2b0d27
commit 0fd1a45131
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -115,7 +115,7 @@ Components can declare a generic relationship between their properties. One exam
<script lang="ts" generics="Item extends { text: string }"> <script lang="ts" generics="Item extends { text: string }">
interface Props { interface Props {
items: Item[]; items: Item[];
select: Item; select(item: Item): void;
} }
let { items, select }: Props = $props(); let { items, select }: Props = $props();

Loading…
Cancel
Save