Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib.dom.d.ts includes bad IE11 defn's #2636

Closed
alexeagle opened this issue Apr 6, 2015 · 1 comment
Closed

lib.dom.d.ts includes bad IE11 defn's #2636

alexeagle opened this issue Apr 6, 2015 · 1 comment
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Fixed A PR has been merged for this issue

Comments

@alexeagle
Copy link
Contributor

The section
IE11 ECMAScript Extensions
(https://github.com/Microsoft/TypeScript/blob/master/bin/lib.dom.d.ts#L636)
contains eg.

declare var Map: {
    new <K, V>(): Map<K, V>;
    prototype: Map<any, any>;
}

But the spec says that Map should have a copy constructor:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map

This causes compile errors for projects which use that constructor. (eg. Angular)

@mhegazy mhegazy self-assigned this Apr 6, 2015
@mhegazy mhegazy added this to the TypeScript 1.5 milestone Apr 6, 2015
@mhegazy mhegazy added Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript labels Apr 6, 2015
@mhegazy mhegazy assigned zhengbli and unassigned mhegazy Apr 12, 2015
@mhegazy
Copy link
Contributor

mhegazy commented Apr 18, 2015

Fixed in #2739

@mhegazy mhegazy closed this as completed Apr 18, 2015
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Apr 18, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

3 participants