Rpc<TRpcMethods>: {
    [TMethodName in keyof TRpcMethods]: PendingRpcRequestBuilder<OverloadImplementations<TRpcMethods, TMethodName>>
}

An object that exposes all of the functions described by TRpcMethods.

Calling each method returns a PendingRpcRequest | PendingRpcRequest where TResponse is that method's response type.

Type Parameters

  • TRpcMethods