import { Client } from "https://deno.land/x/saurpc@0.1.1/client.ts";
Constructors
new
Client(endpoint: string | URL)Type Parameters
T extends Procedures
Methods
call<S extends ProcedureName<T>>(): Promise<ReturnType<T[S]> | ProcedureError>
procedureName: S,
args: Parameters<T[S]>,
opts?: { headers: Headers | [string, string][] | Record<string, string>; },