Skip to content
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

document %checks #2

Closed
rattrayalex-stripe opened this issue Jul 19, 2017 · 1 comment
Closed

document %checks #2

rattrayalex-stripe opened this issue Jul 19, 2017 · 1 comment

Comments

@rattrayalex-stripe
Copy link

rattrayalex-stripe commented Jul 19, 2017

Very hard to find docs for this feature anywhere 😄

eg

declare function isMap(maybeMap: mixed): boolean %checks(maybeMap instanceof Map);
@saltycrane
Copy link
Owner

Agree I couldn't find docs for %checks either. Google gave me these:

https://stackoverflow.com/questions/39456328/how-to-make-flow-understand-dynamic-code-that-uses-lodash-for-runtime-type-check
graphql/graphql-js#695
facebook/flow#2625
facebook/flow#3048

¯_(ツ)_/¯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants