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

fix: Update type imports syntax on gRPC generation #921

Merged
merged 2 commits into from
Sep 18, 2023

Conversation

Zeswen
Copy link
Contributor

@Zeswen Zeswen commented Sep 18, 2023

Fixes #920.

This PR adds the t: prefix to gRPC generation imports when the import is only a type.

This makes sure that the TypeScript compiler is happy when verbatimModuleSyntax is enabled 🙂

@Zeswen Zeswen changed the title Update type imports syntax on gRPC generation fix: Update type imports syntax on gRPC generation Sep 18, 2023
@stephenh
Copy link
Owner

Hi @Zeswen , thanks for the PR! This core change looks great; can you also run yarn bin2ts in the root directory, and then add those changed files to the PR?

This will re-codegen all of our integration tests, which is effectively our regression suite to make sure we don't break generated output.

Thanks!

@Zeswen
Copy link
Contributor Author

Zeswen commented Sep 18, 2023

@stephenh done 🙂

@stephenh
Copy link
Owner

Looks great! Thanks!

@stephenh stephenh merged commit b10ab31 into stephenh:main Sep 18, 2023
6 checks passed
stephenh pushed a commit that referenced this pull request Sep 18, 2023
## [1.157.1](v1.157.0...v1.157.1) (2023-09-18)

### Bug Fixes

* Update type imports syntax on gRPC generation ([#921](#921)) ([b10ab31](b10ab31))
@stephenh
Copy link
Owner

🎉 This PR is included in version 1.157.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

TypeScript option verbatimModuleSyntax not supported
2 participants