react-wheel-of-prizes icon indicating copy to clipboard operation
react-wheel-of-prizes copied to clipboard

Typescript Issue

Open mountainfresh opened this issue 3 years ago • 4 comments

Please consider exporting a .d.ts file with the package for people who use typescript. I am getting this error and having a type declaration file would make it much easier to deal with :) Thanks! Could not find a declaration file for module 'react-wheel-of-prizes'. .../node_modules/react-wheel-of-prizes/dist/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/react-wheel-of-prizes if it exists or add a new declaration (.d.ts) file containing declare module 'react-wheel-of-prizes';

mountainfresh avatar Dec 14 '21 01:12 mountainfresh

@mountainfresh @shekharramola Copying my comment from another thread... I've converted this project locally into modern typescript usable with React 18 (and have fixed a couple of small bugs on the way), I can make a PR to merge those changes into this project if there's still demand

RyanMan56 avatar Feb 12 '23 09:02 RyanMan56

I personally think it would be great if you did @RyanMan56 even if it doesn't get merged I would use it in my project as well.

sandymcfadden avatar Dec 27 '23 17:12 sandymcfadden

I personally think it would be great if you did @RyanMan56 even if it doesn't get merged I would use it in my project as well.

Cool I'll raise a PR in the next couple of days :)

RyanMan56 avatar Dec 31 '23 15:12 RyanMan56

good work! :)

maciekmp avatar Jul 08 '24 18:07 maciekmp