Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/typed_rpc/src/client.ts

Lightweight JSON-RPC solution for TypeScript projects
Go to Latest
import * as typedRpc from "https://deno.land/x/typed_rpc@v4.2.2/src/client.ts";

Classes

Error class that is thrown if a remote method returns an error.

Functions

Create a JsonRpcRequest for the given method.

Create a RpcTransport that uses the global fetch.

Returns a shallow copy the given array without any trailing undefined values.

Type Aliases

Interface for custom transports. Implementations are expected to serialize the given request and return an object that is a JsonRpcResponse.