diff --git a/src/guide/typescript/composition-api.md b/src/guide/typescript/composition-api.md index 4fb1162f19..e8da15f3a8 100644 --- a/src/guide/typescript/composition-api.md +++ b/src/guide/typescript/composition-api.md @@ -50,6 +50,16 @@ const props = defineProps() ``` +This also works if `Props` is imported from an external source. This feature requires TypeScript to be a peer dependency of Vue. + +```vue + +``` + #### Syntax Limitations {#syntax-limitations} In version 3.2 and below, the generic type parameter for `defineProps()` were limited to a type literal or a reference to a local interface.