Added type declarations for log handler

This commit is contained in:
Leon Meier 2025-01-29 19:39:37 +01:00
parent 534e240eff
commit be1544a46f

View File

@ -10,8 +10,17 @@ function loggerConfig(name: string): ISettingsParam<unknown> {
} }
} }
type log = {
core: Logger<unknown>
db: Logger<unknown>
web: Logger<unknown>
auth: Logger<unknown>
api?: Logger<unknown>
frontend?: Logger<unknown>
};
// FIXME: any type // FIXME: any type
let log: any = { let log: log = {
core: new Logger(loggerConfig("Core")), core: new Logger(loggerConfig("Core")),
db: new Logger(loggerConfig("DB")), db: new Logger(loggerConfig("DB")),
web: new Logger(loggerConfig("Web")), web: new Logger(loggerConfig("Web")),