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

[DO NOT MERGE YET] add native Typescript support #9412

Closed
wants to merge 2 commits into from

Conversation

chris-kruining
Copy link

Hi, I've run into the issue that my setup with remix (remix.run) is not capable of handling the esports from the generated js files (even with the support of grpc-web).

At first I started working on a patch for grpc-web in order to fix it, however the deeper I dove into that the more it seems that the whole extension is a workaround.

js now supports client-to-server streaming natively with the newly launched fetch upload streaming.

Therefor I want to make this patch to update protoc to generate proper modern files

To do this I want to:

  • generate typescript files for the messages and client stubs.
  • update the npm library to be fitting a more modern standard and implement the client side streaming.

my goal is to just do the typescript part as not to blow up the scope for me to do personally since I am way out of my depth in c++. For this reason I am hoping for support to properly implement this

chris-kruining and others added 2 commits January 14, 2022 17:41
Hi, I've run into the issue that my setup with remix (remix.run) is not capable of handling the esports from the generated js files (even with the support of grpc-web).

At first I started working on a patch for grpc-web in order to fix it, however the deeper I dove into that the more it seems that the whole extension is a workaround.

js now supports client-to-server streaming natively with the newly launched fetch upload streaming.

Therefor I want to make this patch to update protoc to generate proper modern files 

To do this I want to:
- generate typescript files for the messages and client stubs.
- update the npm library to be fitting a more modern standard and implement the client side streaming.

my goal is to just do the typescript part as not to blow up the scope for me to do personally since I am way out of my depth in c++. For this reason I am hoping for support to properly implement this
@perezd
Copy link
Contributor

perezd commented Jan 14, 2022

Thanks for opening the PR, I wanted to let you know were not planning to support TypeScript in this way with this plugin so I wanted to set your expectations about merging this. Feel free to fork and maintain a plugin that meets your needs, but it won't be something we can devote resources to supporting at the moment.

@chris-kruining
Copy link
Author

Is updating the javascript that is produced to modern syntax still an option?

@chris-kruining
Copy link
Author

I'm closing this as I have found success with the protoc-gen-ts plugin

@chris-kruining chris-kruining deleted the patch-1 branch January 17, 2022 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants