Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 539 Bytes

async-call-rpc.errormapfunction.md

File metadata and controls

21 lines (16 loc) · 539 Bytes

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;
};