From 0d9d9e126d20dc92f16160dabc00f179902e2c8e Mon Sep 17 00:00:00 2001 From: Howie-IO Date: Sat, 14 Nov 2020 20:46:16 -0800 Subject: [PATCH] fixed: ISocketFactory type's argument --- types/index.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index f9ad85fb1..c87c86950 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -32,12 +32,14 @@ export interface KafkaConfig { logCreator?: logCreator } -export type ISocketFactory = ( +export interface ISocketFactoryArgs { host: string, port: number, ssl: tls.ConnectionOptions, onConnect: () => void -) => net.Socket +} + +export type ISocketFactory = (args: ISocketFactoryArgs) => net.Socket export type SASLMechanism = 'plain' | 'scram-sha-256' | 'scram-sha-512' | 'aws' | 'oauthbearer'