You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All messages actually return a JsonObject, the only exception are a handful of well-known types. We use JsonValue for both sides for symmetry, it was never intended to provide message-specific type information.
Describe the bug
Here: https://github.com/bufbuild/protobuf-es/blob/main/packages/protobuf/src/google/protobuf/struct_pb.ts#L72 we see that this function returns a JsonValue type but in the implementation it should return a JsonObject type. This means consuming applications need get type errors when doing anything like Object.entries(struct.toJson())
The text was updated successfully, but these errors were encountered: