Skip to content

console.trace definition is invalid in /lib/lib.dom.d.ts #5433

Closed
@wallride

Description

@wallride

console.trace(a,b,c,1,2,3) emits compilation error:

error TS2346: Supplied parameters do not match any signature of call target.

So, let's open the declaraion in /lib/lib.dom.d.ts:

interface Console {
    log(message?: any, ...optionalParams: any[]): void;
//  ......................
    trace(): void;
}

arguments should be the same as in log(message?: any, ...optionalParams: any[])

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions