1.2.3 • Published 6 months ago

@types/redis-errors v1.2.3

Weekly downloads
11,885
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/redis-errors

Summary

This package contains type definitions for redis-errors (https://github.com/NodeRedis/redis-errors#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redis-errors.

index.d.ts

// Type definitions for redis-errors 1.2
// Project: https://github.com/NodeRedis/redis-errors#readme
// Definitions by: James Garbutt <https://github.com/43081j>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export class RedisError extends Error {
}

export class ParserError extends RedisError {
    buffer: string;
    offset: number;

    constructor(message: string, buffer: string, offset: number);
}

export class ReplyError extends RedisError {
    command?: string | undefined;
    args?: any[] | undefined;
    code?: string | undefined;

    constructor(message: string);
}

export class AbortError extends RedisError {
    command?: string | undefined;
    args?: any[] | undefined;
}

export class InterruptError extends RedisError {
    command?: string | undefined;
    args?: any[] | undefined;
    origin: Error;
}

Additional Details

  • Last updated: Thu, 08 Jul 2021 22:41:49 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by James Garbutt.