Closed as not planned
Closed as not planned
Description
Vue version
3.4.15
Link to minimal reproduction
Steps to reproduce
Case 1: We have set the default value for the text property, but inside the component it is available as string | undefined
Case 2: We have set a default value for the text property, and it is available as a string
inside the component, but now when using the component we will get a Typescript error if we do not set the component attribute (despite the fact that according to the design, it is not necessary since we specified the default value of the property)
What is expected?
It is expected that the type of a property with a default value cannot be undefined, since vue stores the default value there if the corresponding attribute of the component has not been defined
What is actually happening?
Default value may be undefined
System Info
No response
Any additional comments?
No response
Metadata
Metadata
Assignees
Labels
No labels