rafgraph / react-interactive

Better hover, active and focus states than CSS pseudo-classes, and a callback when the interactive state changes.
https://react-interactive.rafgraph.dev
MIT License
167 stars 8 forks source link

Typescript #8

Closed kreba closed 6 years ago

kreba commented 6 years ago

This library looks very promising! I'd love to use it in conjunction with Typescript. Are you planning on providing type definitions anytime soon? I am a JS/TS newbie but I'd be willing to contribute. Thank you for your consideration.

rafgraph commented 6 years ago

I don't use Typescript at the moment, so I won't be adding type definitions. However, if you'd like you can create and publish type definitions forreact-interactive to DefinitelyTyped, which will make this package compatible with TypeScript for all users!

I can answer questions if you run into any confusion about types for the api.

Let me know if you create this and I'll add it to the readme.

kreba commented 6 years ago

Thank you for your speedy feedback.

DanudeSandstorm commented 4 years ago

Hello @rafrex, I realize this is an old issue, but I've recently added a definition for react-interactive to DefinitelyTyped. Let me know if I missed anything.