Repository navigation
navigator.hardwareConcurrency not existing #11581
Copy link
Copy link
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
Activity
While this is part of the living standard, it doesn't have wide browser support. Interfaces are open ended though and it is quite easy to add this:
interface Navigator { hardwareConcurrency: number; } const hardwareConcurrency = window.navigator.hardwareConcurrency; // no error
If you do feel that it is more widely supported, the
lib.webworker.d.tsis generated via TSJS-lib-generator where I suspect a contribution would be welcomed.- addedBugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScript
on Oct 13, 2016 - addedFixed in TSJS repoFix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yetFix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yetand removed
on Oct 21, 2016 - addedFixedA PR has been merged for this issueA PR has been merged for this issueand removedFixed in TSJS repoFix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yetFix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yet
on Oct 31, 2016 - locked and limited conversation to collaborators
on Jun 19, 2018
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
TypeScript Version: 2.0.3
Code
Expected behavior:
No error
Actual behavior:
[ts] Property 'hardwareConcurrency' does not exist on type 'Navigator'.