react-bulma icon indicating copy to clipboard operation
react-bulma copied to clipboard

Support TypeScript?

Open koddr opened this issue 7 years ago • 6 comments

Hello.

What about supporting TypeScript? When I try to use, I see this:

 Try `npm install @types/reactbulma` if it exists or add a new declaration (.d.ts) file containing `declare module 'reactbulma';`

And, of cause, npm install @types/reactbulma do nothing. Would be great to start supporting TS at middle of 2018 for your awesome package..

koddr avatar Jul 03 '18 08:07 koddr

I don't have an experience with TypeScript. But i will be glad if you send a PR.

kulakowka avatar Jul 03 '18 22:07 kulakowka

Hi ! I'm currently working on implementing typings for this project. I will submit a PR when it is ready 😄 Since the repo isn't created in TS, the whole props typings must be done by hand.

thib92 avatar Aug 02 '18 20:08 thib92

PR open #34 😄

thib92 avatar Aug 13 '18 23:08 thib92

Too bad there is no progress whatsoever here, since there already is a pretty decent PR. I just started typing this out manually for a pet project, but I'll stop that. I will either contribute the proposed typings to @types/reactbulma or fork this repo and publish it under my own npm scope.

loopmode avatar Sep 12 '19 06:09 loopmode

@loopmode since the PR isn’t merged into the repo, feel free to take the typings I made and propose them on DefinitelyTyped. I don’t use this project anymore.

This is probably the best thing to do since everyone using this package with TS will get the typings! Publishing it under your own NPM package means you’ll have to maintain a fork with all the updates!

thib92 avatar Sep 12 '19 08:09 thib92

@thib92 what updates? Just kidding :D of course you're right, @types/reactbulma would be much preferable. I just have to get familiar with the DefinitelyTyped repo and workflow. They do have good documentation and recommendations, already looked into. I just know from GitHub what a massive repo it is and have some respect, but it shouldn't be a problem.

loopmode avatar Sep 12 '19 15:09 loopmode