reactotron: Add missing types
Non of the plugins from reactotron-react-native are exported in the typescript types
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 8
- Comments: 17 (8 by maintainers)
Commits related to this issue
- chore(deps): update typescript-eslint monorepo to v4.17.0 (#591) Co-authored-by: Renovate Bot <bot@renovateapp.com> — committed to infinitered/reactotron by renovate[bot] 3 years ago
- chore(deps): update dependency rollup to v2.38.1 (#591) Co-authored-by: Renovate Bot <bot@renovateapp.com> — committed to infinitered/reactotron by renovate[bot] 3 years ago
- chore(deps): update dependency @types/jest to v26.0.15 (#591) Co-authored-by: Renovate Bot <bot@renovateapp.com> — committed to infinitered/reactotron by renovate[bot] 4 years ago
- chore(deps): update dependency eslint-config-prettier to v7.2.0 (#591) Co-authored-by: Renovate Bot <bot@renovateapp.com> — committed to infinitered/reactotron by renovate[bot] 3 years ago
Oh, sorry. Guess I shouldn’t have read so quickly. In that case with the rewrite I plan on hardening up the types as much as I can. I would suggest doing something like
(reactotron as any).createStorefor now.I’ll cut a 2.1 build this week. I’ve got some more typedefs to include as well on
reactotron-react-native.Thanks for everyone’s help! Really appreciate it!
I created typings to get it to work with my project. Here they are below (they’re incomplete for the whole library because these were the only functions we needed typed). This would be the typing for reactotron-redux
Hi @ajmotika, I did create a branch for it and just amended it to include a mention to your contribution (if you are happy with that). Ironically, somebody had created the typedef for redux but it was not linked to the
package.jsonfile so the type was never discoverable to typescript. I am just waiting for the approval of my PR to chuck this one in.Alternatively, you can provide comments to the branch as I have pushed it up here: redux branch
It includes the redux and redux-saga typedef.