Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect parameter type in console.debug #13521

Closed
gaspardle opened this issue Jan 16, 2017 · 0 comments
Closed

Incorrect parameter type in console.debug #13521

gaspardle opened this issue Jan 16, 2017 · 0 comments
Assignees
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Fixed A PR has been merged for this issue Help Wanted You can do this

Comments

@gaspardle
Copy link

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.

@RyanCavanaugh RyanCavanaugh added Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this labels Jan 17, 2017
@mhegazy mhegazy added the Fixed in TSJS repo Fix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yet label Jan 20, 2017
@mhegazy mhegazy added this to the TypeScript 2.2 milestone Jan 20, 2017
@mhegazy mhegazy self-assigned this Jan 20, 2017
@mhegazy mhegazy reopened this Jan 20, 2017
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Feb 2, 2017
@zhengbli zhengbli removed the Fixed in TSJS repo Fix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yet label Feb 3, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Fixed A PR has been merged for this issue Help Wanted You can do this
Projects
None yet
Development

No branches or pull requests

4 participants