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

x/saurpc/client.ts>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.prototype.call
import { Client } from "https://deno.land/x/saurpc@0.1.1/client.ts";

Parameters

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

Returns

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