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 .d.ts files for node gRPC services #141

Merged
merged 1 commit into from
Sep 9, 2019

Conversation

esilkensen
Copy link
Contributor

PR #125 added the --with-typescript option to generate .d.ts declaration files for node using the ts-protoc-gen plugin, but it didn't generate .d.ts files for gRPC services.

This PR adds support for that, fixing issue #138, by bumping the ts-protoc-gen version from 0.10.0 to 0.11.0 (which includes improbable-eng/ts-protoc-gen#193, introducing the service=grpc-node option to generate those .d.ts files).

@esilkensen esilkensen marked this pull request as ready for review August 31, 2019 05:16
@esilkensen esilkensen force-pushed the feature/grpc-service-ts-support branch from 474d38a to caf34ef Compare September 3, 2019 15:19
@@ -39,7 +39,7 @@ testGeneration() {
if [[ "$extra_args" == *"--with-typescript"* ]]; then
# Test that we have generated the .d.ts files.
ts_file_count=$(find $expected_output_dir -type f -name "*.d.ts" | wc -l)
if [ $ts_file_count -eq 0 ]; then
if [ $ts_file_count -ne 2 ]; then
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

outputs are

  • test_pb.d.ts
  • test_grpc_pb.d.ts

@mhamrah
Copy link
Contributor

mhamrah commented Sep 5, 2019

Hey, just getting back from vacation. Is this good to go?

@esilkensen
Copy link
Contributor Author

Sounds good! Yes should be good to go

@mhamrah mhamrah merged commit 7f7ab2f into namely:master Sep 9, 2019
@esilkensen esilkensen deleted the feature/grpc-service-ts-support branch September 10, 2019 08:39
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