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

Declare generated GrpcType inheritance #2852

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

enderteszla
Copy link

Generated interface ProtoGrpcType is in fact an extension of grpc.GrpcObject, but this inheritance wasn't declared until now.

This forced users to cast grpc.loadPackageDefinition(...): grpc.GrpcObject first to as unknown and only then to as {GeneratedGrpcType}.

With this fix users will be able to cast to as {GeneratedGrpcType} directly.

Fixes #2851

Generated interface ProtoGrpcType is in fact an extension of grpc.GrpcObject, but this inheritance wasn't declared until now.

This forced users to cast `grpc.loadPackageDefinition(...): grpc.GrpcObject` first to `as unknown` and only then to `as {GeneratedGrpcType}`.

With this fix users will be able to cast to `as {GeneratedGrpcType}` directly.
Copy link

linux-foundation-easycla bot commented Nov 17, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

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.

Not declaring generated ProtoGrpcType inheritance
1 participant