Stanko / react-plx

React parallax component, powerful and lightweight
https://muffinman.io/react-plx/
MIT License
689 stars 51 forks source link

TypeScript types missing #61

Closed carlosoliveraf closed 4 years ago

carlosoliveraf commented 4 years ago

Since I couldn't find @types/react-plx, how do I import this to my react project? Any help? thanks!

Stanko commented 4 years ago

Unfortunately, types are not the part of the package ATM.

You'll need to create a local type definition file, using PropTypes as reference: https://github.com/Stanko/react-plx/blob/master/source/Plx.js#L834-L897

Feel free to open a PR, I will gladly include it in the repo.

Cheers!

carlosoliveraf commented 4 years ago

Thank you! I declared local type and it is working perfectly.

sandroweb commented 3 years ago

Please, paste declaration here!!

Thank you! I declared local type and it is working perfectly.