Purii/react-use-scrollspy

Typescript support

JasonasIgn opened this issue · 2 comments

If I install the package on a typescript project, I get a warning:
Could not find a declaration file for module 'react-use-scrollspy'.

A declaration file should be added for typescript users

Purii commented

Hi @JasonasIgn!
It's on my list to migrate this component to ts soon. Fixes that issue without additional declaration file

Purii commented

Hi @JasonasIgn
I just migrated the component to TS. So your issue should be fixed with v3.0.0.

Feel free to me know if encounter further issues with the component in your TS project 👍