-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
$NonMaybeType<mixed> still takes null
and undefined
#6606
Comments
Could be related: If anyone's curious, there is a workaround in the form of |
A couple of remaining issues due to facebook#6606: - gDSFP's return type is correct, but in need of a cleanup once $NonMaybeType<$Shape<State>> works. - gSBU's return type still allows undefined, which should be rejected. I have made these explicit in the code by using $FIXME-prefixed aliases.
Still doesn't work with version 105.2. |
@lucianomlima your example is wrong, $NonMaybeType isn't used for objects |
@goodmind what I can do or use with Objects? |
@lucianomlima for your case Try Flow |
@goodmind Thanks a lot! |
@mrkev it's actually pretty hard to fix... I didn't knew about |
try flow
This is probably a bug.
It would make a good first task.Edit: maybe not.The text was updated successfully, but these errors were encountered: