Skip to content

Incorrect parameter type in console.debug  #13521

Closed

Description

TypeScript Version: 2.1.5

Code
In lib.es6.d.ts, console.debug is defined as

debug(message?: string, ...optionalParams: any[]): void;

while console.log is

log(message?: any, ...optionalParams: any[]): void;

Expected behavior:

Shouldn't the message parameter have the same type, any ? According to https://msdn.microsoft.com/en-us/library/hh696634.aspx , they are supposed to be identical.

Activity

  1. added
    Bug
    Domain: lib.d.ts
    on Jan 17, 2017
  2. added
    Fixed in TSJS repo
    on Jan 20, 2017
  3. added
    Fixed
    on Feb 2, 2017
  4. removed
    Fixed in TSJS repo
    on Feb 3, 2017
  5. locked and limited conversation to collaborators on Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDomain: lib.d.tsFixed

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions