We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
following code fails:
/* @flow */ type Empty = {||}; const huh = (ob: Empty) => ob; huh({});
to this:
5: huh({}); ^ object literal. Inexact type is incompatible with exact type 4: const huh = (ob: Empty) => ob; ^ exact type: object type
see: https://flow.org/try/#0PQKgBAAgZgNg9gdzCYAoVAXAngBwKZgCiAtjtmALxgDeAPrQL4DcqAxnAHYDOGYAFgFc+lMAAo4AIwBcRUtgCUlAHxhJLQX1HUG8pkA
when following works just fine:
/* @flow */ type NotEmpty = {|lol: number|}; const huh = (ob: NotEmpty) => ob; huh({lol: 1});
see: https://flow.org/try/#0PQKgBAAgZgNg9gdzCYAoVAXAngBwKZgBycGAogLY7ZgC8YA3gD7wwBcYAdgK7kBGeAJ0YBfANyoAxnA4BnDGAAWXBbTAAKOL3bEylbAEpaAPjCbxShWvot2ARmH7RQA
The text was updated successfully, but these errors were encountered:
Duplicate of #4582
Sorry, something went wrong.
No branches or pull requests
following code fails:
to this:
see: https://flow.org/try/#0PQKgBAAgZgNg9gdzCYAoVAXAngBwKZgCiAtjtmALxgDeAPrQL4DcqAxnAHYDOGYAFgFc+lMAAo4AIwBcRUtgCUlAHxhJLQX1HUG8pkA
when following works just fine:
see: https://flow.org/try/#0PQKgBAAgZgNg9gdzCYAoVAXAngBwKZgBycGAogLY7ZgC8YA3gD7wwBcYAdgK7kBGeAJ0YBfANyoAxnA4BnDGAAWXBbTAAKOL3bEylbAEpaAPjCbxShWvot2ARmH7RQA
The text was updated successfully, but these errors were encountered: