From eff62428709764d00d4c60d696efdef3dca76229 Mon Sep 17 00:00:00 2001 From: Aroop Roelofs Date: Wed, 18 Sep 2024 18:34:10 +0200 Subject: [PATCH] Attempt number 2 --- core/logger.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/logger.ts b/core/logger.ts index 84ded6ff..ea774c8e 100644 --- a/core/logger.ts +++ b/core/logger.ts @@ -54,9 +54,8 @@ export class Logger { * @param level {LogLevels} * @param handler {any} */ - public static setHandler(level: LogLevels, handler: Function): void { + public static setHandler(level: LogLevels, handler: typeof Handlers): void { // @ts-ignore TODO: Figure out how to replace Function with something more sane - // deno-lint-ignore ban-types -- TODO Logger._handlers[level] = handler; }