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

0.5.6 • Public • Published

Installation

npm install --save @types/hiredis

Summary

This package contains type definitions for hiredis (https://github.com/redis/hiredis-node).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hiredis.

index.d.ts

/// <reference types="node" />

import * as net from "net";

export interface Config {
    return_buffers: boolean;
}

export class Reader {
    constructor(config?: Config);
    feed(reply: string | Buffer): void;
    get(): string | Buffer;
}

export function createConnection(port: number, host: string): net.Socket;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Titan.

/@types/hiredis/

    Package Sidebar

    Install

    npm i @types/hiredis

    Weekly Downloads

    259

    Version

    0.5.6

    License

    MIT

    Unpacked Size

    3.21 kB

    Total Files

    5

    Last publish

    Collaborators

    • types