-
Notifications
You must be signed in to change notification settings - Fork 756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why generated files doesn't have implemented classes? #1421
Comments
Hi! I'm not familiar with 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 So, you need to include the underlying js file as well, like how it's done in the echo example here: grpc-web/net/grpc/gateway/examples/echo/ts-example/client.ts Lines 23 to 24 in e91e540
Hope that helps! |
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?
The text was updated successfully, but these errors were encountered: