Skip to content

Commit ee113f3

Browse files
committed
feat: Update usage of useTemplateRef() in composition API guide
1 parent 7611560 commit ee113f3

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
@@ -467,7 +467,7 @@ import { useTemplateRef } from 'vue'
467467
import MyGenericModal from './MyGenericModal.vue'
468468
import type { ComponentExposed } from 'vue-component-type-helpers'
469469
470-
const modal = useTemplateRef<ComponentExposed<typeof MyModal>>(null)
470+
const modal = useTemplateRef<ComponentExposed<typeof MyGenericModal>>(null)
471471
472472
const openModal = () => {
473473
modal.value?.open('newValue')

0 commit comments

Comments
 (0)