Skip to content

Commit b9f464e

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

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
@@ -373,7 +373,7 @@ const foo = inject('foo') as string
373373

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

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

378378
```ts
379379
const el = useTemplateRef<HTMLInputElement>(null)

0 commit comments

Comments
 (0)