Update createClient method to better adhere to docs

See: https://github.com/mranney/node_redis#rediscreateclient
This commit is contained in:
CodeAnimal
2014-09-29 20:32:50 +01:00
parent e9ddb4f840
commit 67762b3951
+3 -1
View File
@@ -6,7 +6,9 @@
// Imported from: https://github.com/soywiz/typescript-node-definitions/redis.d.ts
declare module "redis" {
export function createClient(port_arg: number, host_arg: string, options: ClientOpts): RedisClient;
export function createClient(port_arg: number, host_arg?: string, options?: ClientOpts): RedisClient;
export function createClient(unix_socket: string, options?: ClientOpts): RedisClient;
export function createClient(options?: ClientOpts): RedisClient;
export function print(err: Error, reply: any): void;
export var debug_mode: boolean;