# @types/redis-errors

> TypeScript definitions for redis-errors

Latest version **1.2.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/redis-errors
pnpm add @types/redis-errors
yarn add @types/redis-errors
bun add @types/redis-errors
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.2.3 |
| Published | 2023-11-07 |
| First published | 2017-12-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/redis-errors
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redis-errors
- npm.io page: https://npm.io/package/@types/redis-errors

## Recent versions

- 1.2.3 (latest) — 2023-11-07
- 1.2.1 (ts3.6) — 2021-07-08
- 1.2.0 (ts2.0) — 2017-12-07
- 1.2.2 — 2023-10-18

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redis-errors/index.d.ts)
````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](https://github.com/43081j).

---
_Source: https://npm.io/package/@types/redis-errors · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
