Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9k
Open
Labels
Description
Vue version
3.5.22
Link to minimal reproduction
Steps to reproduce
1, openminimal repo and see the reported error in App.vue at<Comp> usage. It says p1, p2 and p3 required props are missing.
2, openComp.ts see Comp definition where p1, p2 and p3 are defined as optional props. Hoovering overprops insetup func also shows them incorrectly as required.
What is expected?
p1, p2 and p3 props of Comp correctly inferred as optional props like what happens with the similar CompB (options syntax).
What is actually happening?
p1, p2, and p3 props of Comp are inferred incorrectly as required props.
System Info
Any additional comments?
No response