Add an option to allow undefined
for optional properties
#1191
Labels
confirmed
The maintainers of the repo would like to address this
Request a feature
Add a global option to allow
undefined
as a value for optional properties.🤷 Motivation
The type above produces the type
{ phoneNumber?: string }
and will not validate{ phoneNumber: undefined }
at runtime.💡 Solution
Another solution could be a new-ish syntax like
string??
.The text was updated successfully, but these errors were encountered: