Added type declarations for log handler
This commit is contained in:
parent
534e240eff
commit
be1544a46f
@ -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
|
||||
let log: any = {
|
||||
let log: log = {
|
||||
core: new Logger(loggerConfig("Core")),
|
||||
db: new Logger(loggerConfig("DB")),
|
||||
web: new Logger(loggerConfig("Web")),
|
||||
|
Loading…
Reference in New Issue
Block a user