Skip to content

Purpose of ts-proto unclear #422

Answered by stephenh
robtayl0r asked this question in Q&A
Nov 30, 2021 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

Did this library pre-date the TypeScript generation capabilities of proto-loader?

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…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@robtayl0r
Comment options

@stephenh
Comment options

@robtayl0r
Comment options

@robtayl0r
Comment options

@stephenh
Comment options

Answer selected by robtayl0r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants