Closed uynap closed 2 years ago
Thanks for the question :)
From what i understand, the TS generates does not define the API, but rather it generates the definitions matching the underlying generated code by the protobuf compiler.
Per documentation here: https://web.archive.org/web/20200928202524/https://developers.google.com/protocol-buffers/docs/reference/javascript-generated#any= (JS documentation is temporarily missing currently as mentioned here), the List
suffix seems to be part of the protobuf API spec.
So sorry for the inconveniences but this is not fixable on grpc-web side :)
If I have a proto definite like :
Then the plugin will give me something below:
But what I expect is
goals: Array<Goals.AsObject>
instead ofgoalsList: Array<Goals.AsObject>
. Is there a way to stop the plugin doing this "smart" thing?