thesayyn / protoc-gen-ts

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

Add `as const` to UnimplementedService definition #239

Open neko-para opened 1 year ago

neko-para commented 1 year ago

With as const the typeof definition would keep the information of each method in type space, so that we can properly calculate on it.

Currently, the value of requestStream and responseStream are automatically widen into boolean.


image

image