outputPartialMethods (or equivalent) not available in nestJS mode
Hi, I am working on a NestJS gRPC microservice application and am currently using this package to generate TypeScript bindings for my service controllers and clients. So far I have found this package to be the best option available :)
One pain point for me right now is that I have some request message types with a large number of (ideally) optional fields, some of which are repeated fields.
I can almost produce the behaviour I want by marking most fields as optional in my .proto files (in conjunction with the useOptionals flag). However, the generated interfaces still require me to explicitly pass empty arrays for the repeated fields, which is not ideal. I have noticed there are a couple of issue threads relating to this already and didn't want to add to the noise!
A nice alternative would be to generate MessageType.fromPartial methods and simply use them at the call site, but this option doesn't appear to be available when using the nestJs flag - if I also specify outputPartialMethods=true, it doesn't look to have any effect on the output.
I have noticed that I can force generation of MessageType.fromPartial methods by also providing one of outputEncodeMethods=true or outputJsonMethods=true (and overriding the default nestJs=true options).
This doesn't appear to be related specifically to nestJS mode - if I omit the nestJs=true flag the behaviour is the same: the fromPartial methods are only generated if either outputEncodeMethods or outputJsonMethods is true.
While I can meet my requirements for now by providing either of those flags (and generating unnecessary/unwanted encoding and/or JSON conversion methods), it would be nice to have the ability to output only the fromPartial methods.