smtp/connection: type logger arguments as unknown

This commit is contained in:
Zack Schuster 2022-04-26 20:58:38 -07:00
parent 7f8e15ddb6
commit f419b6f169
1 changed files with 3 additions and 3 deletions

View File

@ -40,10 +40,10 @@ const GREYLIST_DELAY = 300 as const;
let DEBUG: 0 | 1 = 0;
/**
* @param {...any[]} args the message(s) to log
* @param {...unknown[]} args the message(s) to log
* @returns {void}
*/
const log = (...args: any[]) => {
const log = (...args: unknown[]) => {
if (DEBUG === 1) {
args.forEach((d) =>
console.log(
@ -81,7 +81,7 @@ export interface SMTPConnectionOptions {
ssl: boolean | SMTPSocketOptions;
tls: boolean | SMTPSocketOptions;
authentication: (keyof typeof AUTH_METHODS)[];
logger: (...args: any[]) => void;
logger: (...args: unknown[]) => void;
}
export interface ConnectOptions {