mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Update createClient method to better adhere to docs
See: https://github.com/mranney/node_redis#rediscreateclient
This commit is contained in:
Vendored
+3
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user