-
Notifications
You must be signed in to change notification settings - Fork 649
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
grpc-js: TypeScript Support? #1417
Comments
|
@moloch-- I've created an example repo you can refer to: https://github.com/badsyntax/grpc-js-types @murgatroid99 any thoughts about #1380 ? If that PR was merged, i'll then update |
I merged #1380. I think it's a reasonable change and I understand why some people would prefer it to the |
Thanks @badsyntax @murgatroid99 was able to get my use case working with the |
I have published |
* Use grpc_js when compiling grpc stubs * Upgrade dependencies * sed hack https://github.com/grpc/grpc-node/issues/1417\#issuecomment-626335578
Problem description
I get that
grpc-js
is a newer library, and there doesn't seem to be any detailed documentation or examples yet of how to usegrpc-js
so maybe I'm just doing something wrong. I essentially have some proto3.proto
files from an existing project and some gRPC definitions I'd like to use with Node v14 and TypeScript. This doesn't seem possible:proto.Loader
doesn't support types, so I need to generate static code files/typespbjs
andpbts
don't generate gRPC static codeproto-gen-ts
plug doesn't generate code usable withgrpc-js
, replacing imports doesn't workResults in:
Environment
The text was updated successfully, but these errors were encountered: