thesayyn / protoc-gen-ts

Compile protocol buffer messages to TypeScript.
MIT License
362 stars 75 forks source link

Support Promises in Server Definition #224

Open Goldziher opened 1 year ago

Goldziher commented 1 year ago

Hi There,

Thanks for this great plugin. I encounter an issue when I am trying to use async functions as call handlers for GRPC-JS services.

As you can see here: https://github.com/grpc/grpc-node/issues/54, grpc-js supports async handlers that return promises. The issue is that the types generated by this library do not allow this.