-
Notifications
You must be signed in to change notification settings - Fork 349
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
How to disable option addGrpcMetadata=true for grpc-web impl? #270
Comments
Can you just add
It does sound like there is a larger issue here wrt a mismatch between |
@stephenh thank you for your quick response! However, adding |
I'm experiencing the same issue on a fresh install. |
Ah okay, I found it; this bug was introduced accidentally during a refactored while fixing a related bug. :-) I've got a fix + test case in, and it will be out in the next release. Thanks! |
🎉 This issue has been resolved in version 1.79.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Awesome, thanks! |
I think there is no more possibility to disable
addGrpcMetadata=true
option if having optionoutputClientImpl=grpc-web
. Probably, this issue was introduced in #259Reproduction:
ts-proto version: 1.79.1
proto:
options:
output:
The attempt to compile the output ts file results in the error:
Type 'Metadata | undefined' is not assignable to type 'BrowserHeaders | undefined'.
As you can see, we have
Metadata
fromgrpc
in theDemoService
interface andgrpc.Metadata
from@improbable-eng/grpc-web
in theDemoServiceClientImpl
class which causes compatibility issues.Is there any way to disable option
addGrpcMetadata=true
for if the clientImpl isgrpc-web
?The text was updated successfully, but these errors were encountered: