UNPKG

@connectrpc/connect-query

Version:

TypeScript-first expansion pack for TanStack Query that gives you Protobuf superpowers.

11 lines 598 B
import type { Message, PartialMessage } from "@bufbuild/protobuf"; import type { CallOptions, Transport } from "@connectrpc/connect"; import type { MethodUnaryDescriptor } from "./method-unary-descriptor.js"; /** * Call a unary method given it's signature and input. */ export declare function callUnaryMethod<I extends Message<I>, O extends Message<O>>(methodType: MethodUnaryDescriptor<I, O>, input: PartialMessage<I> | undefined, { callOptions, transport, }: { transport: Transport; callOptions?: CallOptions | undefined; }): Promise<O>; //# sourceMappingURL=call-unary-method.d.ts.map