New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TS definitions support? #23
Comments
Thank you for submitting this @ali-habibzadeh. The project does currently not expose any types/interfaces. But I can see the advantage of
That would be much appreciated! 👍 |
Are you still working on this @ali-habibzadeh? I'd be happy to take over if you're ok with that. |
@geopic thank you for your interest in this issue. Since I have not heard anything, I do think @ali-habibzadeh has abandoned this. @ali-habibzadeh : Please correct me if I am wrong. |
I'll get started on it within a few days then, unless @ali-habibzadeh objects. |
Great, don't hesitate to ask questions if you have any. I'll be monitoring GitHub closely. |
It's both. The option object will be forwarded to the generated parser. And also to the
Those are both options for the parser generator, not the parser itself. The supported options are documented here. But I would actually not expose Which means what I would expose and document in the type is the following (mostly tracer options)
|
I have another question about |
I am not quite sure which For your purpose it's probably best if you have a look at:
In case you need examples, there is a wealth of them in the test/fixtures directory. |
@Enteee Thanks for the help and taking time to link to some resources. |
Implemented with #33 |
Is your feature request related to a problem? Please describe.
It's almost a universal expectation for modules to have types so they can be used in a TS application.
Describe the solution you'd like
If you are coding in TS, ship with
declaration: true
but you can also add it separately to https://github.com/DefinitelyTyped.Describe alternatives you've considered
I will have a go at creating something and will let you know when I have something.
Additional context
No.
The text was updated successfully, but these errors were encountered: