grpc-node
grpc-node copied to clipboard
Declare generated GrpcType inheritance
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