From 5683d277b30c2f2fa3214775f4af326bc35dc9f1 Mon Sep 17 00:00:00 2001 From: Ed Mitchell Date: Tue, 23 Jan 2024 12:04:49 -0500 Subject: [PATCH] fix: #13077 KafkaJs typing consistency --- packages/microservices/external/kafka.interface.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/microservices/external/kafka.interface.ts b/packages/microservices/external/kafka.interface.ts index ed7a07befb3..e0baefa7416 100644 --- a/packages/microservices/external/kafka.interface.ts +++ b/packages/microservices/external/kafka.interface.ts @@ -38,13 +38,17 @@ type Authenticator = { authenticate: () => Promise; }; +export type SaslAuthenticateArgs = { + request: SaslAuthenticationRequest; + response?: SaslAuthenticationResponse; +}; + type AuthenticationProviderArgs = { host: string; port: number; logger: Logger; saslAuthenticate: ( - request: SaslAuthenticationRequest, - response?: SaslAuthenticationResponse, + args: SaslAuthenticateArgs, ) => Promise; };