Usage with plain javascript objects and typescript types #1016
-
We currently use ts-proto to generate types and then just use plain object that follows the structure of those types. We prefer this model to generating runnable code such as classes. Today we implement our own framework for transfering the seriazlied proto data with an abstraction for transport. When I saw the connect protocol that piqued my interest as it seems similar to what we are already doing, altough in a more standardized form. So I'm starting to research how we may use the connect protocol. The first question I got is if there is some way to use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
I dug a bit into the source and found this: Here it seems there is a So my conclusion for now it that this |
Beta Was this translation helpful? Give feedback.
Connect-ES v2 now uses Protobuf-ES v2, which is built around using plain javascript objects. Here are some relevant blog posts
https://buf.build/blog/protobuf-es-v2
https://buf.build/blog/connect-es-v2
I think this addresses the original question so going to close this discussion.