Skip to content

Please remove non-ES6 types from lib.d.ts #2697

Closed
@Arnavion

Description

@Arnavion

The "IE11 ECMAScript Extensions" contains ES6 collections, which allows code aimed at ES5 runtimes to mistakenly use them and fail at runtime.

For backward compatibility, perhaps make a new lib.es5.d.ts that doesn't have these sections. That will also require a way to override the default lib independent of specifying the target.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in 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