Chevrotain / chevrotain

Parser Building Toolkit for JavaScript
https://chevrotain.io
Apache License 2.0
2.44k stars 199 forks source link

Generating types files from js for package using chevrotain #2012

Closed dhowe closed 6 months ago

dhowe commented 6 months ago

So I'm trying to generate a .d.ts file for my package writing in js and using chevrotain. I've generated a types file for the parser following these docs but I'm unsure how to use it with tsc to generate types for the complete library

thanks for any advice

bd82 commented 6 months ago

Hello @dhowe

Is this really a Chevrotain question? or a general TypeScript question?

Some relevant references:

dhowe commented 6 months ago

I guess the question was about how to integrate the dynamically generated parser types into general types for the package -- but probably borderline. Thanks for the refs