From d9eaffd6ea57dcc1ea1db2a30bcb3ee3a3abbd9b Mon Sep 17 00:00:00 2001 From: ubugeeei Date: Wed, 4 Nov 2026 01:10:15 +0900 Subject: [PATCH] docs(vue): use TypeScript and destructured typed props in Vue examples React examples use TSX, but several Vue examples omitted `lang="ts"`. Add it to every Vue example with a script block. Replace implicit `defineProps()` calls and the runtime `defineProps({ posts: Array })` declaration with reactive props destructure and a type declaration, so each example shows where its template bindings come from. Co-Authored-By: Claude Opus 5.5 --- docs/guide/pages-routing/islands.md | 6 +++--- docs/guide/pages-routing/layouts.md | 2 +- docs/guide/pages-routing/loaders.md | 4 ++-- docs/guide/pages-routing/markdown.md | 2 +- docs/guide/type-safety.md | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/guide/pages-routing/islands.md b/docs/guide/pages-routing/islands.md index 83a8f7462..abb8a166f 100644 --- a/docs/guide/pages-routing/islands.md +++ b/docs/guide/pages-routing/islands.md @@ -96,11 +96,11 @@ export default function BlogIndex({ posts }) { ```vue [Vue] -