Skip to content
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

Typescript .d.ts for generated grammars #477

Open
hildjj opened this issue Feb 13, 2024 · 0 comments
Open

Typescript .d.ts for generated grammars #477

hildjj opened this issue Feb 13, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@hildjj
Copy link
Contributor

hildjj commented Feb 13, 2024

If desired, output a generic .d.ts file for the generated grammar. The caller will need to provide the expected return type. This is NOT a replacement for ts-pegjs, it is just the bare minimum needed. No actual type checking will be performed. Start by cutting down the hand-maintained peg.d.ts into just the things needed for generated parsers (including SyntaxError and dependencies), then add a small number of generics.

@hildjj hildjj self-assigned this Feb 13, 2024
@hildjj hildjj added the enhancement New feature or request label Feb 13, 2024
@hildjj hildjj mentioned this issue Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant