Closed
Description
Vue version
3.5.3
Link to minimal reproduction
Steps to reproduce
minimal reproduction shows inferred props type returns the component's ExtractPropTypes
What is expected?
should be able to infer ComponentPropsOptions
What is actually happening?
until updating to v3.5, I've been using this snippet to infer public prop types from components
type ComponentProps<T> =
T extends DefineComponent<infer Props, any, any>
? ExtractPublicPropTypes<Props>
: never
but Props
are now already extracted with ExtractPropTypes
and I'm unable to infer ComponentPropsOptions
to extract the public props
System Info
No response
Any additional comments?
I was unable to find the relevant commit, but I think this change was already introduced in 3.4