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

Generate typescript declarations #111

Open
Timmmm opened this issue Oct 25, 2019 · 2 comments
Open

Generate typescript declarations #111

Timmmm opened this issue Oct 25, 2019 · 2 comments

Comments

@Timmmm
Copy link
Contributor

Timmmm commented Oct 25, 2019

It would be nice if this generated typescript type declarations corresponding to the generated Javascript code.

Or even better, just have a --typescript mode that generates Typescript in the first place.

@mourner
Copy link
Member

mourner commented Oct 26, 2019

Yep! Can you give #107 a try?

@rubick24
Copy link

https://github.com/rubick24/pbf-compile-ts
I tinkered compile.js a little bit to make it support typescript in my case, but I think it would be better to use Babel to generate ASTs and then output formatted code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants