RpcResponseTransformer

type RpcResponseTransformer<TResponse> = (response, request) => TResponse;

A function that accepts a RpcResponse and returns another RpcResponse.

This allows the RpcApi to transform the response before it is returned to the caller.

Type Parameters

Type ParameterDefault type
TResponseunknown

Parameters

ParameterType
responseunknown
requestRpcRequest

Returns

TResponse

On this page