diff --git a/src/guide/typescript/composition-api.md b/src/guide/typescript/composition-api.md index 438fcc78ca..7093823e80 100644 --- a/src/guide/typescript/composition-api.md +++ b/src/guide/typescript/composition-api.md @@ -423,3 +423,38 @@ import type { ComponentPublicInstance } from 'vue' const child = ref(null) ``` + +In cases where the component referenced is a [generic component](/guide/typescript/overview.html#generic-components), for instance `MyGenericModal`: + +```vue + + +``` + +It needs to be referenced using `ComponentExposed` from the [`vue-component-type-helpers`](https://www.npmjs.com/package/vue-component-type-helpers) library as `InstanceType` won't work. + +```vue + + +``` +