interface RpcProxy.Constructors
Defines the static RpcProxy
API.
Properties
Error
Returns the Error types and utilities available for RpcProxy.
Error
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.
create
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
Name | Description |
---|---|
T | the interface to proxy |
Parameters
Name | Type | Description |
---|---|---|
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 |