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
I'm trying out the connect-es v2 RC with @bufbuild/protobuf 2.2.0.
When passing any available options to the toJson function, the return type is inferred as JsonValue instead of the {Message}Json type. This happens regardless of whether or not the json_types option is set to true for the protoc-gen-es.
The expected outcome here is that the return type is the {Message}Json type; the ideal outcome is that the type also takes into account the options given and infers more specific types, e.g. when enumAsInteger is given, any enums are a number in the type.
The text was updated successfully, but these errors were encountered:
I'm trying out the connect-es v2 RC with @bufbuild/protobuf 2.2.0.
When passing any available options to the
toJson
function, the return type is inferred asJsonValue
instead of the{Message}Json
type. This happens regardless of whether or not thejson_types
option is set to true for theprotoc-gen-es
.The expected outcome here is that the return type is the
{Message}Json
type; the ideal outcome is that the type also takes into account the options given and infers more specific types, e.g. whenenumAsInteger
is given, any enums are anumber
in the type.The text was updated successfully, but these errors were encountered: