connectrpc / connect-es

The TypeScript implementation of Connect: Protobuf RPC that works.
https://connectrpc.com/
Apache License 2.0
1.39k stars 82 forks source link

V2: Replace MethodInfo with Descriptor Types #1255

Closed srikrsna-buf closed 1 month ago

srikrsna-buf commented 1 month ago

Replace MethodInfo with Descriptor Types. We plan on adding these types to @bufbuild/protobuf. We can remove the types once that is done.

This also makes the types stricter, transport will now only accept unary descriptors for unary and streaming descriptors for stream methods. Likewise the interceptor types are also stricter.