Now types for Logger class are:
export class Logger {
new(dispatch: Function, name: string): Logger; // wrong constructor signature
level: string;
log(...args: any[]): void;
...
but seems like this is incorrect and current implementation is different.
according to it, typing should be
export class Logger {
constructor(name: string): Logger; // "new" replaced with "constructor" and arguments are fixed
level: string;
log(level: string, ...args: any[]): void; // arguments are fixed
...
Now types for Logger class are:
but seems like this is incorrect and current implementation is different.
according to it, typing should be