Closed adrianwiechec-at-optilyz closed 3 months ago
Hey @adrianwiechec-at-optilyz, thanks for the submission!
So this behavior is technically correct with simple typescript configs, as a "null" value is allowed to be set for a type like string. But if the user has strictNullChecks enabled in their tsconfig, then you are right that this would be a bug.
Either way, I agree with you that this type output is not clear. It would be better if the resulting type was "string | null". Let me try to add it in this weekend.
Fixed in v9.3.1 🚀
Thank you, once again! :bow:
Another
default
problem, sorry :(For:
mtgen
gives us:completely ignoring the possibility of
null
...