react-json-to-csv icon indicating copy to clipboard operation
react-json-to-csv copied to clipboard

Typescript support

Open hronchetti opened this issue 4 years ago • 5 comments

Hey! Loving this simple package but I'm using TypeScript and the standard methods of:

npm i --save-dev @types/react-json-to-csv yarn add -D @types/react-json-to-csv

Return 'Not found'. Are there any plans to add a TypeScript declaration file?

hronchetti avatar Dec 14 '21 12:12 hronchetti

Hey @hronchetti, thanks for creating this issue. Yes, that's easily doable. Additionally, I plan to switch to building this package with typescript. This enhancement is something that I'll pickup when time permits, unless a community member would like to adopt the task first.

coston avatar Dec 14 '21 13:12 coston

Hey guys, I've created a pull request for the type definition for this package. If you guys have some time, it would be good to have you guys review the pull request and potentially approve it? Cheers.

nui-tech avatar Jun 25 '22 13:06 nui-tech

Hey guys, The type is up on the npm registry https://www.npmjs.com/package/@types/react-json-to-csv npm i --save-dev @types/react-json-to-csv

nui-tech avatar Jun 28 '22 05:06 nui-tech

Very nice, @nui-tech! Thank you for helping to support this project. 🎉

coston avatar Jun 29 '22 18:06 coston

I've added a typescript documentation to the docs.

📌 There is still opportunity to rewrite this package in TS, should someone want a project.

coston avatar Jun 29 '22 18:06 coston