@types/redis-errors
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

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

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: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by James Garbutt.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/redis-errors

Weekly Downloads

27,840

Version

1.2.3

License

MIT

Unpacked Size

3.81 kB

Total Files

5

Last publish

Collaborators

  • types