Skip to main content
Module

x/async_call_rpc/docs/async-call-rpc.errormapfunction.md

A lightweight JSON RPC client & server
Latest
File

Home > async-call-rpc > ErrorMapFunction

ErrorMapFunction type

Signature:

export declare type ErrorMapFunction<T = unknown> = (error: unknown, request: Readonly<{
    jsonrpc: '2.0';
    id?: string | number | null;
    method: string;
    params: readonly unknown[] | object;
}>) => {
    code: number;
    message: string;
    data?: T;
};