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

flow: discrepancies between flow-typed/redux@4 and react-beautiful-dnd #650

Closed
chmanie opened this issue Jul 18, 2018 · 4 comments
Closed

Comments

@chmanie
Copy link

chmanie commented Jul 18, 2018

Bug or feature request?

Feature request (tooling)

Feature request

Currently you're just stubbing out the redux types: https://github.com/atlassian/react-beautiful-dnd/blob/master/flow-typed/npm/redux_vx.x.x.js

When using the "inofficial" redux types from flow-typed (here: https://github.com/flow-typed/flow-typed/tree/master/definitions/npm/redux_v4.x.x/flow_v0.55.x- ) there seem to be a lot of conflicts. Being not super comfortable with the redux types I can't say where the issues originate from. I set up a repo to illustrate the issues: https://github.com/chmanie/redux-flow-beautiful-dnd (this build is probably helpful: https://travis-ci.org/chmanie/redux-flow-beautiful-dnd/builds/405318548).

When using redux and this library in a project I have to either not use the redux types or ignore type checking of this library (none of these options excite me a lot, really).

Have you considered aligning your project with the redux flow-types provided? I'd be happy to help in any way I can to move this forward.

@chmanie chmanie changed the title Flow: discrepancies between flow-typed/redux@4 and react-beautiful-dnd flow: discrepancies between flow-typed/redux@4 and react-beautiful-dnd Jul 18, 2018
@alexreardon
Copy link
Collaborator

Happy to have these improved. I would have expected there is no issues given that react-beautiful-dnd does not expose redux as api, but flow is probably only keeping one definition around.

Upgrading to the version 4 redux types would be great. I think we needed to use the stubs as we where early adopters. A PR would be great

/cc @TrySound

@alexreardon
Copy link
Collaborator

Fixed by #673

@chmanie
Copy link
Author

chmanie commented Aug 3, 2018

You are amazing ❤️

@alexreardon
Copy link
Collaborator

I try 😊

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

No branches or pull requests

2 participants