Skip to main content
Deno 2 is finally here 🎉️
Learn more
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@v5.0.1/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.