Nutella with Pepperoni and Mushrooms

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

    1.2.1 • 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

    // 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.

    Keywords

    none

    Install

    npm i @types/redis-errors

    DownloadsWeekly Downloads

    47,056

    Version

    1.2.1

    License

    MIT

    Unpacked Size

    4.3 kB

    Total Files

    4

    Last publish

    Collaborators

    • types