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:

  1. Add a tsconfig.json in the root with {"extends": "@tsconfig/react-native/tsconfig.json"}
  2. Add @tsconfig/react-native to the dev dependencies (is a default in react native typescript projects)
  3. Run typecheck yarn tsc or npm run tsc
  4. 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)

Most upvoted comments

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 👋