-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Vue version
3.5.13
Link to minimal reproduction
Steps to reproduce
- In tsconfig.json, set
"declaration": true
- Write an SFC with a script setup block and an attribute naming a generic, like
generic="T"
- Write a props interface using the generic and pass it to the type parameter in
defineProps
- Observe a type error saying "Default export of the module has or is using private name"
What is expected?
This should not trigger a type error, which is how it works when no generic attribute is provided.
What is actually happening?
There is a type error saying "Default export of the module has or is using private name"
System Info
Any additional comments?
No response