From be1544a46fb486315c524af4864636d5bf255ff5 Mon Sep 17 00:00:00 2001 From: Spacelord Date: Wed, 29 Jan 2025 19:39:37 +0100 Subject: [PATCH] Added type declarations for log handler --- src/handlers/log.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/handlers/log.ts b/src/handlers/log.ts index 18191f0..70fb8a5 100644 --- a/src/handlers/log.ts +++ b/src/handlers/log.ts @@ -10,8 +10,17 @@ function loggerConfig(name: string): ISettingsParam { } } +type log = { + core: Logger + db: Logger + web: Logger + auth: Logger + api?: Logger + frontend?: Logger +}; + // FIXME: any type -let log: any = { +let log: log = { core: new Logger(loggerConfig("Core")), db: new Logger(loggerConfig("DB")), web: new Logger(loggerConfig("Web")),