0.5.6 • Published 6 months ago
@types/hiredis v0.5.6
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
// Type definitions for hiredis 0.5
// Project: https://github.com/redis/hiredis-node
// Definitions by: Titan <https://github.com/titan>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <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: Thu, 16 Dec 2021 22:31:58 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by Titan.