Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 555
bmusonda Avatar asked May 16 '26 14:05

bmusonda


1 Answers

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

like image 142
Vadzim Avatar answered May 18 '26 05:05

Vadzim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!