-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Closed
Labels
❗ p4-importantPriority 4: this fixes bugs that violate documented behavior, or significantly improves perf.Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf.regressionscope: types
Description
Vue version
3.3.2
Link to minimal reproduction
Steps to reproduce
Build a library with
DefineComponent<MyProps, {}, {}, {}, {}, {}, {}, {}, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps>
What is expected?
The emitted type includes
$props: MyProps & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps
Consumers of the library can use module augmentation to set ComponentCustomProps
What is actually happening?
Prettify
added in 4c9bfd2 flattens it to
$props: { foo?: string, bar?: string }
Consumers cannot add anything with ComponentCustomProps
System Info
No response
Any additional comments?
ml1nk, reslear, nevecex and zswaff
Metadata
Metadata
Assignees
Labels
❗ p4-importantPriority 4: this fixes bugs that violate documented behavior, or significantly improves perf.Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf.regressionscope: types