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

Future Roadmap of Typescript Definition Generation #412

Open
jonnyreeves opened this issue Dec 16, 2018 · 2 comments
Open

Future Roadmap of Typescript Definition Generation #412

jonnyreeves opened this issue Dec 16, 2018 · 2 comments

Comments

@jonnyreeves
Copy link

jonnyreeves commented Dec 16, 2018

👋 Hello, I'm one of the maintainers of ts-protoc-gen, we are currently considering the future of our package in an RFC and would appreciate your thoughts on the following topic which will help us steer our own roadmap.

As part of considering the future of ts-protoc-gen, we are thinking that it would benefit the wider TypeScript community to split ts-protoc-gen into 2 separate plugins:

a) a protoc plugin dedicated to generating service stubs for use with improbable-eng/grpc-web clients.

b) a protoc plugin for generating the TypeScript definitions to accompany the messages generated by protoc's JavaScript language support (which can be used by any TypeScript project regardless of which (if any) grpc service implementation is being used).

It's great that protoc-gen-grpc-web provides support for generating Typescript definitions for both messages and services, however if the TypeScript definition generation was moved up into protoc itself, or extracted into a separate plugin then we would no longer need to create and maintain plugin B mentioned above.

I'd love hear your thoughts on this and see if we can combine efforts to provide a more unified, and flexible set of tools for TypeScript developers

@stanley-cheung
Copy link
Collaborator

Yea, b) is definitely a short-term stop gap strategy here. We had been talking with the protobuf team to see how we can add TypeScript support to the official protocolbuffers JS implementations. When we have more concrete details, we will definitely share it here.

@shaxbee
Copy link
Contributor

shaxbee commented Feb 3, 2019

I'd be happy to prepare PR in official Protobuf repo. Would be there any way to discuss it?

loyalpartner pushed a commit to loyalpartner/grpc-web that referenced this issue Sep 4, 2020
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