Is It Possible to Expose Request/Response Types for Service Method Definitions #205
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Hi @thesayyn!
While using directly
loadSync
from@grpc/proto-loader
(comparing toprotoc-gen-ts
) it populates a service description additionally withrequestType
andresponseType
definitions. E.g.Is it possible to achieve the same with the
protoc-gen-ts
it self. Because for now the only solution I can see is just to abuseUnimplementedServiceNameService.definitiion
and to inject it there manually. Or just to export full definitions separately.Or is there any more pure designed solutions to have these definition within
protoc-gen-ts
classes?I'm not really sure whether my huck solution will work at all since a final
Client
class extended fromgrpc_1.makeGenericClientConstructor(
already wrapped the definition once I've been imported it. I'l take a try.Thx.
The text was updated successfully, but these errors were encountered: