fix the SaslConfig type to compile with the updated library
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -25,8 +25,19 @@ export interface ClusterDetails {
|
||||
|
||||
export type SslConfig = ConnectionOptions | boolean;
|
||||
|
||||
export type SaslConfig = {
|
||||
mechanism: 'plain' | 'scram-sha-256' | 'scram-sha-512';
|
||||
username: string;
|
||||
password: string;
|
||||
};
|
||||
export type SaslConfig =
|
||||
| {
|
||||
mechanism: 'plain';
|
||||
username: string;
|
||||
password: string;
|
||||
}
|
||||
| {
|
||||
mechanism: 'scram-sha-256';
|
||||
username: string;
|
||||
password: string;
|
||||
}
|
||||
| {
|
||||
mechanism: 'scram-sha-512';
|
||||
username: string;
|
||||
password: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user