Function isJsonRpcFailure

  • Check if the given value is a valid JsonRpcFailure object.

    Returns

    Whether the given value is a valid JsonRpcFailure object.

    Parameters

    • value: unknown

      The value to check.

    Returns value is {
        error: JsonRpcError;
        id: null | string | number;
        jsonrpc: "2.0";
    }