From 67762b395175362ed52d794e7279fc75f412f029 Mon Sep 17 00:00:00 2001 From: CodeAnimal Date: Mon, 29 Sep 2014 20:32:50 +0100 Subject: [PATCH] Update createClient method to better adhere to docs See: https://github.com/mranney/node_redis#rediscreateclient --- redis/redis.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/redis/redis.d.ts b/redis/redis.d.ts index e31b130ac..e7a7f29bf 100644 --- a/redis/redis.d.ts +++ b/redis/redis.d.ts @@ -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;