react-native-gifted-charts: Typescript errors
Describe the bug
Found 187 errors in 22 files.
If you run yarn tsc
you’ll get 187 typescript errors in this project.
Most of them are
Parameter 'xyz' implicitly has an 'any' type.
To Reproduce Steps to reproduce the behavior:
- Add a
tsconfig.json
in the root with{"extends": "@tsconfig/react-native/tsconfig.json"}
- Add
@tsconfig/react-native
to the dev dependencies (is a default in react native typescript projects) - Run typecheck
yarn tsc
ornpm run tsc
- See errors
Expected behavior There shouldn’t be any errors.
About this issue
- Original URL
- State: open
- Created 6 months ago
- Reactions: 4
- Comments: 15 (6 by maintainers)
Hi @digitalthjarta These typescript errors have always been there. I’ll try to fix them in coming 1 or 2 weeks.
Sorry @tfsjohan @dogancancelik12 for the delay. I could have released a new version with type fixes, but here’s an update.
The web counterpart of this library is almost ready. So I wanted to add types in such a way that it satisfies both- react-native and reactJS.
Check my new repo- https://github.com/Abhinandan-Kushwaha/react-gifted-charts
Expect this all to be ready by this weekend.
Any updates here? We can not get a build with tsc build
Here’s a workaround for this issue: https://gist.github.com/araphiel/b3d13ade7f9fe69e99c3d053196557d2
Hope this can help 👋