Skip to content

Commit

Permalink
Merge pull request #13084 from edeesis/fix-13077
Browse files Browse the repository at this point in the history
fix: #13077 KafkaJs typing consistency
  • Loading branch information
kamilmysliwiec authored Feb 7, 2024
2 parents 7786a65 + 5683d27 commit c7e1e24
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/microservices/external/kafka.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,17 @@ type Authenticator = {
authenticate: () => Promise<void>;
};

export type SaslAuthenticateArgs<ParseResult> = {
request: SaslAuthenticationRequest;
response?: SaslAuthenticationResponse<ParseResult>;
};

type AuthenticationProviderArgs = {
host: string;
port: number;
logger: Logger;
saslAuthenticate: <ParseResult>(
request: SaslAuthenticationRequest,
response?: SaslAuthenticationResponse<ParseResult>,
args: SaslAuthenticateArgs<ParseResult>,
) => Promise<ParseResult | void>;
};

Expand Down

0 comments on commit c7e1e24

Please sign in to comment.