How to use javascript packages which don't support typescript in React.js Typescript version

Viewed 270

I'm developing the admin dashboard and researched the right chart library for the design.

It was react-timeseries-charts library. But the problem is that doesn't support the Typescript version like type@react-timeseries-charts such as other popular libraries.

My React.js project uses Typescript and can't change it to Javascript due to just this chart library.

I know many libraries don't support the Typescript version now and want to make sure how to solve this problem.

1 Answers

You need to add custom type definition of that module. This and this articles describes how to do it.

Related