-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Open
Description
Vue version
3.3.4
Link to minimal reproduction
Steps to reproduce
See vue playground, the compiled prop result
What is expected?
the compiled prop m
should be { type: Boolean }
What is actually happening?
the compiled prop m
is {}
System Info
No response
Any additional comments?
No response
roydukkey, artkrblv, DaedalusDev, ypresto and supermar1010anytinz and DaedalusDev
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
so1ve commentedon Dec 21, 2023
The compiler doesn't resolve generics declared in
<script setup generic="...">
.alexzhang1030 commentedon Dec 21, 2023
Should it be supported in the future, or it be designed thus?
so1ve commentedon Dec 21, 2023
You can try https://github.com/so1ve/vue.ts/tree/main/packages/complex-types.
ascott18 commentedon Nov 23, 2024
Declaring the prop as
TGeneric & boolean
instead of justTGeneric
seems to work for me, without breaking the generic-ness of the prop.