n49 / react-stars

A simple star rating component for your React projects :star:
http://developers.n49.com/react-stars/
218 stars 82 forks source link

import ReactStars from 'react-stars'; #60

Open keyanMalfoy opened 5 years ago

keyanMalfoy commented 5 years ago

I use React Stars in my tsx code. I found this error “Customer/node_modules/react-stars/dist/react-stars.js' implicitly has an 'any' type.” Could you tell me how to fix it ?

olegberman commented 5 years ago

@Hermanya please advise

Hermanya commented 5 years ago

Usually when someone in the community needs types for an untyped lib, they write types themselves and publish them on definitely typed (the @types/package-name). But in this case @olegberman showed interest in rewriting this lib in typescript, so it's possible we can resolve this issue in the near future.

davidwhthomas commented 3 months ago

Try

npm i --save-dev @types/react-stars