dmaevsky / rd-parse

Generic recursive-descent parser in Javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript support?

ivank opened this issue · 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?

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!