rd-parse icon indicating copy to clipboard operation
rd-parse copied to clipboard

Typescript support?

Open ivank opened this issue 4 years ago • 1 comments

First of all thank you very much for this package, it just blew my mind with its elegance!

I wanted to write some types in DefinitlyTyped for it, but the esm modules don't work well with type script for some reason.

Currently I've just copy-pasted the code to our project and added types, but I'd be happy to help with making it available in TS, though I'm not sure how to go about it.

What do you think?

ivank avatar Sep 17 '20 07:09 ivank

Ivan, Sorry for the late reply, and thank you for kind words :) Any help is definitely appreciated. We are actively using rd-parse in a number of quite large projects, all of them in plain old JS though. So I don't have much experience with TS to be honest. What is exactly the problem with esm modules in TS? Could you point me to some code I could play with and reproduce error messages if any ? Thanks a lot!

dmaevsky avatar Sep 18 '20 12:09 dmaevsky