Files
DefinitelyTyped/types/hiredis/index.d.ts
2017-08-17 14:53:41 -07:00

21 lines
518 B
TypeScript

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