-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Flow types in RelayTypes stripped from npm module #1064
Comments
Yep, using For example, we could ship a Finally, I guess you could work around this by cloning the Relay source and using |
I closed the linked issue out of frustration. sorry. @wincent does the file |
The intention is that Compare that with To your question about query response type, we don't really have one for that, as far as I know. See |
@wincent Since flow prefers So if Would you please consider doing that? |
A command to help this workflow is being worked on over here facebook/flow#2184 |
@thejameskyle That's awesome! In the mean time, I still think it's a good idea to publish the original source to NPM for the flow types. |
It's not as easy as just copying the source files. Relay uses haste as module system and to be able to use the flow types in a commonjs project we will need to do some transpilation. @thejameskyle Is this something that the new command will be able to do? (re-write paths or bundle all flow types into one file) |
Are there any plans to add Relay to flow-types? |
Superseded by #1758 (which applies to Relay Modern), so going to close this one. |
This may be a duplicate of #712, but it looks like this isn't a closed case. I'm using Flow more and more in my projects, and would like to be able to use Relay’s already-defined flow types to augment that.
Previously I've seen some maintainers say that all the types are exposed in
RelayTypes
, but it looks like all the type definitions are stripped fromreact-relay/lib/RelayTypes.js
, so I can't imagine how that would work.Is this the intended way to use Relay’s flow types? And if so, how does that work considering none of the type definitions are available in the published version of Relay?
The text was updated successfully, but these errors were encountered: