ts-proto icon indicating copy to clipboard operation
ts-proto copied to clipboard

Option for remove toJSON

Open f0rmat1k opened this issue 2 years ago • 2 comments

There is no option, to remove toJSON from output. Only both with --ts_proto_opt=outputJsonMethods=false. We are using tool on the client and we need only fromJSON there. It would be nice to have option about removing toJSON (or only fromJOSN). I can try to send PR, if you don't mind

f0rmat1k avatar Jul 01 '23 08:07 f0rmat1k

Hi @f0rmat1k , sure if you wanted to add support for outputJsonMethods=fromJSON, so it becomes like outputJsonMethods=true|false|fromJSON|toJSON" that sgtm. Thanks!

stephenh avatar Jul 01 '23 14:07 stephenh

Hi! I didn't read this issue but I've managed to do the same thing! I've opened a PR for this

Frabat avatar Jul 05 '23 21:07 Frabat