Closed gtsigner closed 3 years ago
hope there is one way to convert a interface object to pb object
or there is one way direct to access props instead of get set method
Sorry, I didn't get the point. What feature actually you want? I'm not familiar with the DI feature of nestjs, a bit confused.
I guess you want
messageObject.someAttr
and now the coding style is
messageObject.getSomeAttr()
Am I correct?
One thing to mention is this repo is aiming to generate d.ts
for the js codes generated by grpc_tools_node_protoc. So for the feature
s you want, you may need to raise ticket here: https://github.com/grpc/grpc-node.
Sorry, I didn't get the point. What feature actually you want? I'm not familiar with the DI feature of nestjs, a bit confused.
I guess you want
messageObject.someAttr
and now the coding style is
messageObject.getSomeAttr()
Am I correct?
One thing to mention is this repo is aiming to generate
d.ts
for the js codes generated by grpc_tools_node_protoc. So for thefeature
s you want, you may need to raise ticket here: https://github.com/grpc/grpc-node.
Yes i want this like what you say. thanks. i got it, i will publish a issue to grpc_tools_node_protoc
it's the best tool to gen typescript for project but it's maybe miss some props read like this
https://www.npmjs.com/package/protoc-gen-ts
https://www.npmjs.com/package/protoc-gen-ts this lib is gen only interface api to read props like object, when im using nestjs DI feature like this it will not inject the LoginRequest object and therefore lacks the get set