Closed thommee closed 1 year ago
Hi @Thommee ! It looks like you may have made the changes to the JS file by hand? I'm new to this project, but I have worked with protobuf a fair amount, and the target code should always be updated via the codegen tool. It also isn't recommended to have int64
types from protobufs converted into potentially unsafe types (I'm of the understanding that number
is still technically unsafe because some JS engines will still not properly support 64-bit integers)
Currently timestamps (int64) are decoded as objects with "low", "high", and "unsigned" properties. This PR changes this behavior.
Before:
After: