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
Description:
I am encountering an issue when utilizing the google.protobuf.Struct message struct directly in the return type of a method in TypeScript generated by ts-proto. Instead of generating an object, the generated code uses the Struct class for encoding or decoding.
I'm kinda guessing there, but if you could dig into that PR, and see if you could crib its approach (or at least it should get you to the right area of the code), and submit a PR for this, that'd be great! Thanks!
Description:
I am encountering an issue when utilizing the
google.protobuf.Struct
message struct directly in the return type of a method in TypeScript generated byts-proto
. Instead of generating an object, the generated code uses theStruct
class for encoding or decoding.Steps to Reproduce:
{ [key: string]: any }
but relies on theStruct
class.Expected Behavior:
I expect the generated TypeScript code to produce an object for the return type instead of using the
Struct
class directly.Actual Behavior:
The generated code uses the
Struct
class directly in the return type of the method.Additional Information:
--ts_proto_opt=nestJs=true
The text was updated successfully, but these errors were encountered: