Skip to content

Commit

Permalink
Refactor: ESLint typing fixes (#1102)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmercm committed Apr 26, 2024
1 parent 3999705 commit d62e780
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/console/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ export default class Logger {
}

const chalkFuncs = {
[LogLevel.ALWAYS]: (msg) => msg,
[LogLevel.ALWAYS]: (msg): string => msg,
[LogLevel.TRACE]: chalk.grey,
[LogLevel.DEBUG]: chalk.magenta,
[LogLevel.INFO]: chalk.cyan,
[LogLevel.WARN]: chalk.yellow,
[LogLevel.ERROR]: chalk.red,
[LogLevel.NOTICE]: chalk.underline,
[LogLevel.NEVER]: (msg) => msg,
[LogLevel.NEVER]: (msg): string => msg,
} satisfies { [key in LogLevel]: (message: string) => string };
const chalkFunc = chalkFuncs[logLevel];

Expand Down

0 comments on commit d62e780

Please sign in to comment.