fix linter issues with ioredis types copied from ioredis project

This commit is contained in:
Alex Petty
2019-01-11 10:45:14 -06:00
parent 6887f2179f
commit 1548342f59
+5 -3
View File
@@ -972,14 +972,16 @@ declare namespace IORedis {
count?: number;
}
export type DNSLookupFunction = (hostname: string, callback: (err: NodeJS.ErrnoException, address: string, family: number) => void) => void
export type NatMap = {[key: string]: {host: string, port: number}}
type DNSLookupFunction = (hostname: string, callback: (err: NodeJS.ErrnoException, address: string, family: number) => void) => void;
interface NatMap {
[key: string]: {host: string, port: number};
}
interface ClusterOptions {
clusterRetryStrategy?(times: number, reason?: Error): number | null;
enableOfflineQueue?: boolean;
enableReadyCheck?: boolean;
scaleReads?: string | Function;
scaleReads?: string;
maxRedirections?: number;
retryDelayOnFailover?: number;
retryDelayOnClusterDown?: number;