refactor: fix types

This commit is contained in:
syuilo
2023-02-09 11:46:08 +09:00
parent 33c4e57994
commit 76faec2115
4 changed files with 5 additions and 6 deletions

View File

@@ -45,7 +45,7 @@ export default class Logger {
}
const time = dateFormat(new Date(), 'HH:mm:ss');
const worker = cluster.isPrimary ? '*' : cluster.worker.id;
const worker = cluster.isPrimary ? '*' : cluster.worker!.id;
const l =
level === 'error' ? important ? chalk.bgRed.white('ERR ') : chalk.red('ERR ') :
level === 'warning' ? chalk.yellow('WARN') :