Skip to main content

interface RpcProxy.Constructors

Defines the static RpcProxy API.

Properties

Error

Returns the Error types and utilities available for RpcProxy.

Definition

get Error(): typeof RpcProxyError;

Methods

create

Returns a new RpcProxy instance, where each exec call will retrieve the proxy execution path and forward the path to the given onCall function.

Definition

create<T>(onCall: (path: RpcProxy.Path) => Promise<any>): RpcProxy<T>;

Type parameters

NameDescription
Tthe interface to proxy

Parameters

NameTypeDescription
onCall(path: RpcProxy.Path) => Promise<any>function that will be called with the execution path each time an operation is performed on the proxy object