Skip to content

Object.getOwnPropertyDescriptors is missing from ES2017 lib d.ts #18610

Closed
@xirzec

Description

@xirzec

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions