Skip to content

Missing optional argument in console.profileEnd #24869

@krzysztof-grzybek

Description

@krzysztof-grzybek

TypeScript Version: 3.0.0-dev.20180609

Search Terms: profileEnd console missing argument profile reportName

Code

console.profileEnd('myReportName')

https://github.com/Microsoft/TypeScript/blob/ba4bf21eade396ac0d82ab1278dfddc6ce69c653/lib/lib.webworker.d.ts#L323

Expected behavior: Type checker shouldn't complain about argument, according to MDN

Actual behavior: Type checker complains about argument. There is missing optional argument for console.profileEnd definition.

Playground Link:

Related Issues:

Metadata

Metadata

Assignees

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
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions