async-call-rpc

A lightweight JSON RPC client & server

Home > async-call-rpc > ErrorMapFunction

ErrorMapFunction type

Signature:

export declare type ErrorMapFunction<T = unknown> = (error: unknown, request: Readonly<JSONRPCRequest>) => {
    code: number;
    message: string;
    data?: T;
};

References: JSONRPCRequest