Open samueltangz opened 3 years ago
As the current workaround, we use the following line:
jspb.Message.bytesListAsB64(res.getBarList() as Uint8Array[])
// res.getBarList_asB64()`
We see that the return type for getBarList()
is either Uint8Array[]
or string
. Is this workaround valid (this won't work if there be a case that it is returning string
)? Thanks!
I am making something with grpc-web and found
repeated bytes
having a missing method in its generated.d.ts
file. I have made a simplified.proto
file for testing:Generating the typescript & javascript files from the command suggested by the doc, i.e,:
Although there is a
getBarList_asB64
in the generatedpb.js
file, the method prototype is not available inpb.d.js
.Here is the versions for protoc & grpc web:
Many thanks for noticing this!