Skip to content

Incorrect types for Logger class  #797

@andrew-yustyk

Description

@andrew-yustyk

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
        ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions