Kit
Type aliases

RpcResponse

RpcResponse<TResponse> = TResponse

Represents the response from a RPC server.

This could be any sort of data which is why RpcResponse defaults to unknown. You may use a type parameter to specify the shape of the response — e.g. RpcResponse<{ result: number }>.

Type Parameters

Type ParameterDefault type
TResponseunknown

On this page