diff --git a/src/api/sfc-script-setup.md b/src/api/sfc-script-setup.md index 89bd6f4440..d569b18235 100644 --- a/src/api/sfc-script-setup.md +++ b/src/api/sfc-script-setup.md @@ -522,6 +522,18 @@ defineProps<{ ``` +You can use `@vue-generic` the directive to pass in explicit types, for when the type cannot be inferred: + +```vue + +``` + In order to use a reference to a generic component in a `ref` you need to use the [`vue-component-type-helpers`](https://www.npmjs.com/package/vue-component-type-helpers) library as `InstanceType` won't work. ```vue