You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if this is an issue with the language tools, or Vue, or even expected, but when "exactOptionalPropertyTypes": true is set, optional props still have the undefined value in templates.
This is currently an issue for me because some components expect optional props so (property) reverse?: boolean, which doesn't work with exactOptionalPropertyTypes.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I don't know if this is an issue with the language tools, or Vue, or even expected, but when
"exactOptionalPropertyTypes": true
is set, optional props still have theundefined
value in templates.This is currently an issue for me because some components expect optional props so
(property) reverse?: boolean
, which doesn't work withexactOptionalPropertyTypes
.Using default props also seems to break:
Should I open an issue for this? (Vue 3.3.8 & Volar/vue-tsc 1.8.22)
Beta Was this translation helpful? Give feedback.
All reactions