-
Struggling to understand what Did this library pre-date the TypeScript generation capabilities of proto-loader? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Yes. ts-proto was originally developed for ~circa-2018 / pre-grpc-ish Twirp/proto3 RPCs, when the only other options were protobuf's built-in JS and protobuf.js's "TypeScript codegen'd from JS comments" approach. It's since grown to a variety of things, and has a variety of options, which I think the strong point being either: a) there is likely an existing flag to make output "the way you want", or I've not had a chance/reason to look at |
Beta Was this translation helpful? Give feedback.
Yes.
ts-proto was originally developed for ~circa-2018 / pre-grpc-ish Twirp/proto3 RPCs, when the only other options were protobuf's built-in JS and protobuf.js's "TypeScript codegen'd from JS comments" approach.
It's since grown to a variety of things, and has a variety of options, which I think the strong point being either:
a) there is likely an existing flag to make output "the way you want", or
b) it's generally/easily hackable to add/change such things if you want
I've not had a chance/reason to look at
@grpc/proto-loader
, so can't really say much about it. I see that it does code generation, like as…