Closed rodrigorodriguescosta closed 3 weeks ago
Hi!
I'm not familiar with buf.gen.yaml
, because it seems like a Buf concept (not part of this project).
Although, regarding the test_pb.d.ts — it's only a Typescript declaration of the API implemented in Javascript.
In this case, it would exist in test_pb.js
file, like below:
So, you need to include the underlying js file as well, like how it's done in the echo example here:
Hope that helps!
Closing the issue due to inactivity. Feel free to re-open later with more details. Thanks!
Hi, I'd like to understand why generated files in typescript are not implemented, so Echo example where has
request.setMessage('Hello World!');
doesn't work because setMessage is not implementederror:
req.setName is not a function
, because setName is not implemented in generated files, what's am I doing wrong?this is my
buf.gen.yaml
here are all the files
test.proto
test_pb.d.ts
test_grpc_web_pb.d.ts
test.ts
, here I'm trying to send request butreq.setName("test")
doesn't work because it's not implemented, why do we need to implement requests and response for each message?so, why all the methods of the classes (like TestRequest ) are not implemented?