grpc-node icon indicating copy to clipboard operation
grpc-node copied to clipboard

Declare generated GrpcType inheritance

Open enderteszla opened this issue 1 year ago • 1 comments

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

enderteszla avatar Nov 17 '24 18:11 enderteszla

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: enderteszla / name: Lev Bezborodov (4289fc45aaf77dd18b564cad7807fe961f3bd35e, 8ed659e74169129d718b6cf000c2bc055742b13d, 1abd78e2a943989a98361f9be2e5cd26e0114ed3)