Object.getOwnPropertyDescriptors is missing from ES2017 lib d.ts #18610
Copy link
Copy link
Closed
Labels
Domain: 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
TypeScript Version: 2.4.2
Code
Object.getOwnPropertyDescriptors({});Expected behavior:
Compiles with --lib es2017
Actual behavior:
Doesn't compile, missing definitions
You can see it's missing from the lib file: https://github.com/Microsoft/TypeScript/blob/master/lib/lib.es2017.object.d.ts
Reference of the implementation:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptors
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Domain: 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
Activity
mhegazy commentedon Sep 21, 2017
lib\*is just the LKG that we use to bootstrap the compiler, it has not been updated in a while.the definition for
getOwnPropertyDescriptorsshould be intypescript@next. here is the definition https://github.com/Microsoft/TypeScript/blob/4d2aa9bf2cef463df1cfea3b206eb3f04e1ca765/src/lib/es2017.object.d.ts#L30.this was added by #18175