protoc-gen-ts
protoc-gen-ts copied to clipboard
Add support for google.protobuf.Any's pack and unpack methods and correct JSON serialization
.pack
and .unpack
methods should be implemented and add compatibility with the toObject
method, to allow JSON serialization.
Another change to be made to the toObject
method is how it serializes Timestamp and Duration. Timestamp should be serialized to a ISO 8601 string, and Duration to "12m54s", as an example.
Related to #148
This is fixed with the rust rewrite.