PromiseClient<T>:{ [P in keyof T["methods"]]: T["methods"][P] extends MethodInfoUnary<infer I, infer O> ? ((request, options?) => Promise<O>) : T["methods"][P] extends MethodInfoServerStreaming<infer I, infer O> ? ((request, options?) => AsyncIterable<O>) : T["methods"][P] extends MethodInfoClientStreaming<infer I, infer O> ? ((request, options?) => Promise<O>) : T["methods"][P] extends MethodInfoBiDiStreaming<infer I, infer O> ? ((request, options?) => AsyncIterable<O>) : never }
PromiseClient is a simple client that supports unary and server-streaming
methods. Methods will produce a promise for the response message,
or an asynchronous iterable of response messages.
PromiseClient is a simple client that supports unary and server-streaming methods. Methods will produce a promise for the response message, or an asynchronous iterable of response messages.