From 1548342f59fc4fc3c41c091a64703ba297d38f2b Mon Sep 17 00:00:00 2001 From: Alex Petty Date: Fri, 11 Jan 2019 10:45:14 -0600 Subject: [PATCH] fix linter issues with ioredis types copied from ioredis project --- types/ioredis/index.d.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/types/ioredis/index.d.ts b/types/ioredis/index.d.ts index 3de80afd22..ca1d71a0aa 100644 --- a/types/ioredis/index.d.ts +++ b/types/ioredis/index.d.ts @@ -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;