-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Type parameter should not be assumed truthy #27050
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Duplicate
An existing issue was already created
Comments
Could you explain more how can fix this and try to understand for me. |
I don't know how to fix this, but we'll likely have a fix in a few months since this was assigned to the ts3.2 milestone. |
I'm going to mark this a duplicate of #22348. We need the ability to express "the falsy parts of |
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TypeScript Version: 3.1.0-dev.20180912
Code
Expected behavior:
Error -- the output may be
""
orundefined
.Actual behavior:
No error. (Error at runtime.)
The text was updated successfully, but these errors were encountered: