saltycrane / flow-cheatsheet

Script to generate a Flow type cheat sheet
https://www.saltycrane.com/flow-type-cheat-sheet/latest/
64 stars 7 forks source link

React-Native, Redux, and related libraries #9

Open ibiwan opened 6 years ago

ibiwan commented 6 years ago

Would it be possible to add types for the above libraries, including react-native redux react-redux redux-thunk expo and other related things?

If I could find the information somewhere (unlikely, this is why I'm asking here) would you accept a pull request adding them to your cheat sheet?

saltycrane commented 6 years ago

Hi Jeremy, thanks for the inquiry. Flow types for some libraries (like redux and react-redux) are available in the flow-typed repo. Some libraries include Flow types as part of their library.

I agree it would be nice to add flow-typed libraries to maybe a separate "3rd party libraries" page of the cheat sheet. A tricky part might be how to handle the combination of the library versions and the Flow versions that the types are valid for. Maybe a first cut would handle just the latest version of each.