Fix bad typings left over from the migration

This commit is contained in:
Hornwitser committed 2023-11-19 04:50:07 +01:00
1 parent 7314dc99c8
commit 80e1904175
22 files changed
+93 -117

No files matched your search

+3 -3
View File
@@ -44,7 +44,7 @@ export class ConsoleTransport extends Transport {
this.filter = options.filter || (() => true);
}
log(info: any, callback: Function) {
log(info: any, callback: () => void) {
if (!this.filter(info)) {
return callback();
}
@@ -70,7 +70,7 @@ export class WebConsoleFormat {
public options = {}
) { }
transform(info: any, _options: {}) {
transform(info: any, _options: object) {
let src = " ";
if (info.host_id !== undefined) {
src += `s:${info.host_name} - `;
@@ -174,5 +174,5 @@ export type Logger = Omit<winston.Logger,
info: winston.LeveledLogMethod,
server: winston.LeveledLogMethod,
verbose: winston.LeveledLogMethod,
child(options: Object): Logger,
child(options: object): Logger,
};