You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
15 lines
323 B
TypeScript
15 lines
323 B
TypeScript
export interface AuthOptions {
|
|
username?: string;
|
|
password: string;
|
|
}
|
|
|
|
export function transformArguments({username, password}: AuthOptions): Array<string> {
|
|
if (!username) {
|
|
return ['AUTH', password];
|
|
}
|
|
|
|
return ['AUTH', username, password];
|
|
}
|
|
|
|
export declare function transformReply(): string;
|