Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/saurpc/mod.ts>client.Client#call

saurpc is a tiny set of functions and types to make strongly-typed RPC easily manageable across TypeScript projects.
Go to Latest
method client.Client.prototype.call
import { client } from "https://deno.land/x/saurpc@0.1.1/mod.ts";
const { Client } = client;

Type Parameters

S extends ProcedureName<T>

Parameters

procedureName: S
args: Parameters<T[S]>
optional
opts: { headers: Headers | [string, string][] | Record<string, string>; }

Returns

Promise<ReturnType<T[S]> | ProcedureError>