Skip to content

Commit

Permalink
fix: nestjs#13077 KafkaJs typing consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
edeesis committed Jan 23, 2024
1 parent 22b7946 commit 5683d27
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 5683d27

Please sign in to comment.