Skip to content

Commit 59a6d75

Browse files
naokihabajay-es
andauthored
Update src/guide/typescript/composition-api.md
Co-authored-by: Jun Shindo <[email protected]>
1 parent ee113f3 commit 59a6d75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/typescript/composition-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ const foo = inject('foo') as string
371371

372372
## テンプレート参照の型付け {#typing-template-refs}
373373

374-
Vue 3.5 と `@vue/language-tools` 2.1(IDE の言語サービスと `vue-tsc` の両方をサポート)では、SFC の `useTemplateRef()` で作成された `ref` の型は、`ref` 属性が使用されている要素またはコンポーネントに基づいて、静的な `ref` の型を *自動的に推論* できます。
374+
Vue 3.5 と `@vue/language-tools` 2.1(IDE の言語サービスと `vue-tsc` の両方をサポート)では、SFC の `useTemplateRef()` で作成された `ref` の型は、`ref` 属性が使用されている要素またはコンポーネントに基づいて、静的な `ref` の型を**自動的に推論**できます。
375375

376376
自動推論が不可能な場合でも、`generic` 引数を使用してテンプレート参照を明示的な型にキャストすることができます:
377377

0 commit comments

Comments
 (0)