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.