René's URL Explorer Experiment


Title: Event types do not exist in the Window interface · Issue #19758 · microsoft/TypeScript · GitHub

Open Graph Title: Event types do not exist in the Window interface · Issue #19758 · microsoft/TypeScript

X Title: Event types do not exist in the Window interface · Issue #19758 · microsoft/TypeScript

Description: TypeScript Version: 2.7.0-dev.201xxxxx Code npm install typescript jsdom @types/jsdom // example.ts import { JSDOM } from 'jsdom'; let dom = new JSDOM(` Test DOM \r\n\u003c!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript -->\r\n\u003c!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md -->\r\n\r\n\u003c!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:** 2.7.0-dev.201xxxxx\r\n\r\n**Code**\r\n\r\n```shell\r\nnpm install typescript jsdom @types/jsdom\r\n```\r\n\r\n```ts\r\n// example.ts\r\n\r\nimport { JSDOM } from 'jsdom';\r\n\r\nlet dom = new JSDOM(`\r\n \u003c!DOCTYPE html>\r\n \u003chtml>\r\n \u003chead>\r\n \u003ctitle>Test DOM\u003c/title>\r\n \u003c/head>\r\n \u003cbody>\r\n \u003cinput type=\"button\" id=\"button\" />\r\n \u003c/body>\r\n \u003c/html>\r\n`);\r\nlet window = dom.window;\r\nlet elem = window.document.getElementById('button');\r\nelem.onclick = (ev: MouseEvent) => {\r\n console.log(`Button clicked, typeArg: ${ev.type}`);\r\n}\r\nlet event: MouseEvent = new window.MouseEvent('someTypeArg');\r\nelem.onclick(event);\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nTypeScript compiles, running `node example.js` outputs the following to console, then exits:\r\n\r\n```\r\nButton clicked, typeArg: someTypeArg\r\n```\r\n\r\n**Actual behavior:**\r\n\r\nTypeScript fails to compile with the following error:\r\n\r\n```\r\nexample.ts(19,36): error TS2339: Property 'MouseEvent' does not exist on type DOMWindow\r\n```\r\n\r\n--------------------------------------\r\n\r\n[@types/jsdom](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/jsdom/index.d.ts) defines the `DOMWindow` interface as:\r\n\r\n```ts\r\nexport interface DOMWindow extends Window { eval(script: string): void; }\r\n```\r\n\r\nThe `Window` interface it extends is the one defined by TypeScript. That interface is missing definitions for the Event types, although these Event types are declared outside the `Window` interface. In web browsers, the Event types exist both globally and on the `window` object. TypeScript currently handles the former but not the latter.\r\n\r\n[jsdom](https://github.com/tmpvar/jsdom) does in fact implement the Event types on the `dom.window` object. You can modify the code above to compile and behave as expected by extending the `DOMWindow` interface, adding the `MouseEvent` type to it, and casting the `dom.window` object to this newly defined interface:\r\n\r\n```ts\r\nimport { JSDOM, DOMWindow } from 'jsdom';\r\n\r\ninterface WindowWithMouseEvent extends DOMWindow {\r\n MouseEvent: {\r\n prototype: MouseEvent;\r\n new(typeArg: string, eventInitDict?: MouseEventInit): MouseEvent;\r\n }\r\n}\r\n\r\nlet dom = new JSDOM(`\r\n \u003c!DOCTYPE html>\r\n \u003chtml>\r\n \u003chead>\r\n \u003ctitle>Test DOM\u003c/title>\r\n \u003c/head>\r\n \u003cbody>\r\n \u003cinput type=\"button\" id=\"button\" />\r\n \u003c/body>\r\n \u003c/html>\r\n`);\r\nlet window = dom.window as WindowWithMouseEvent;\r\nlet elem = window.document.getElementById('button');\r\nelem.onclick = (ev: MouseEvent) => {\r\n console.log(`Button clicked, typeArg: ${ev.type}`);\r\n}\r\nlet event: MouseEvent = new window.MouseEvent('someTypeArg');\r\nelem.onclick(event);\r\n```\r\n\r\nI've spoken to the maintainer of [@types/jsdom](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/jsdom/index.d.ts) (see [this issue](https://github.com/DefinitelyTyped/DefinitelyTyped/issues/21235)) and they suggested raising an issue with your team instead. I agree, seeing as Event types exist on the `window` object in web browsers.","author":{"url":"https://github.com/KevinSnyderCodes","@type":"Person","name":"KevinSnyderCodes"},"datePublished":"2017-11-06T02:18:55Z","url":"https://github.com/microsoft/TypeScript/issues/19758"}


react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9b28dfbe-6002-274a-6c42-204ed72c7028
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA66A:117C62:26AB470:339E671:6B01ACDC
html-safe-noncea22fbe2de4ae4478d0660f3faad9a384c7515f30331eb9ea37fc7bb0d72a7124
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjZBOjExN0M2MjoyNkFCNDcwOjMzOUU2NzE6NkIwMUFDREMiLCJ2aXNpdG9yX2lkIjoiODExNjc1NjEzOTgyOTQ3MjQ3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac1d7b71b6079eaba18d311e4506f65e15444bd9a97c9e3def8d30d28584652c72
hovercard-subject-tagissue:271340701
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/19758/issue_layout
twitter:imagehttps://opengraph.githubassets.com/faf1e9cb6e49b1ba90bb89d203873eeeae423792b2e0909a829dd4b9162c62c8/microsoft/TypeScript/issues/19758
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/faf1e9cb6e49b1ba90bb89d203873eeeae423792b2e0909a829dd4b9162c62c8/microsoft/TypeScript/issues/19758
og:image:altTypeScript Version: 2.7.0-dev.201xxxxx Code npm install typescript jsdom @types/jsdom // example.ts import { JSDOM } from 'jsdom'; let dom = new JSDOM(` Test DO...</td></tr> <tr><td>og:image:width</td><td>1200</td></tr> <tr><td>og:image:height</td><td>600</td></tr> <tr><td>og:site_name</td><td>GitHub</td></tr> <tr><td>og:type</td><td>object</td></tr> <tr><td>og:author:username</td><td>KevinSnyderCodes</td></tr> <tr><td>hostname</td><td>github.com</td></tr> <tr><td>expected-hostname</td><td>github.com</td></tr> <tr><td>None</td><td>cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c</td></tr> <tr><td>turbo-cache-control</td><td>no-preview</td></tr> <tr><td>go-import</td><td>github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git</td></tr> <tr><td>octolytics-dimension-user_id</td><td>6154722</td></tr> <tr><td>octolytics-dimension-user_login</td><td>microsoft</td></tr> <tr><td>octolytics-dimension-repository_id</td><td>20929025</td></tr> <tr><td>octolytics-dimension-repository_nwo</td><td>microsoft/TypeScript</td></tr> <tr><td>octolytics-dimension-repository_public</td><td>true</td></tr> <tr><td>octolytics-dimension-repository_is_fork</td><td>false</td></tr> <tr><td>octolytics-dimension-repository_network_root_id</td><td>20929025</td></tr> <tr><td>octolytics-dimension-repository_network_root_nwo</td><td>microsoft/TypeScript</td></tr> <tr><td>turbo-body-classes</td><td>logged-out env-production page-responsive</td></tr> <tr><td>disable-turbo</td><td>false</td></tr> <tr><td>browser-stats-url</td><td>https://api.github.com/_private/browser/stats</td></tr> <tr><td>browser-errors-url</td><td>https://api.github.com/_private/browser/errors</td></tr> <tr><td>release</td><td>8c77c9e8439031ad54c75a250694842892f693e1</td></tr> <tr><td>ui-target</td><td>full</td></tr> <tr><td>theme-color</td><td>#1e2327</td></tr> <tr><td>color-scheme</td><td>light dark</td></tr> <tr><td>react-app-name</td><td>issues</td></tr> </table> <p><b>Links</b>: <table> <tr><td>Skip to content</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues/19758#start-of-content'>https://github.com/microsoft/TypeScript/issues/19758#start-of-content</a></td></tr> <tr><td></td><td><a href='/?url=https://github.com/'>https://github.com/</a></td></tr> <tr><td>Sign in</td><td><a href='/?url=https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F19758'>https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F19758</a></td></tr> <tr><td>GitHubRepository hosting, code review, and collaboration</td><td><a href='/?url=https://github.com/platform'>https://github.com/platform</a></td></tr> <tr><td>CopilotAI coding agent for tasks, projects, and automated work</td><td><a href='/?url=https://github.com/features/copilot'>https://github.com/features/copilot</a></td></tr> <tr><td>ActionsCI/CD and automation</td><td><a href='/?url=https://github.com/features/actions'>https://github.com/features/actions</a></td></tr> <tr><td>Code QualityQuality analysis, fixes, and enforcement</td><td><a href='/?url=https://github.com/features/code-quality'>https://github.com/features/code-quality</a></td></tr> <tr><td>CodespacesCloud development environments</td><td><a href='/?url=https://github.com/features/codespaces'>https://github.com/features/codespaces</a></td></tr> <tr><td>Code SecurityVulnerability detection and remediation</td><td><a href='/?url=https://github.com/security/advanced-security/code-security'>https://github.com/security/advanced-security/code-security</a></td></tr> <tr><td>Secret ProtectionSecret scanning and leak prevention</td><td><a href='/?url=https://github.com/security/advanced-security/secret-protection'>https://github.com/security/advanced-security/secret-protection</a></td></tr> <tr><td>All Features</td><td><a href='/?url=https://github.com/features'>https://github.com/features</a></td></tr> <tr><td>Documentation</td><td><a href='/?url=https://docs.github.com/en'>https://docs.github.com/en</a></td></tr> <tr><td>Training</td><td><a href='/?url=https://learn.github.com/skills'>https://learn.github.com/skills</a></td></tr> <tr><td>Certifications</td><td><a href='/?url=https://learn.github.com/credentials'>https://learn.github.com/credentials</a></td></tr> <tr><td>Build with Copilot</td><td><a href='/?url=https://github.com/features/ai'>https://github.com/features/ai</a></td></tr> <tr><td>Customize Copilot</td><td><a href='/?url=https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview'>https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview</a></td></tr> <tr><td>Integrations</td><td><a href='/?url=https://github.com/marketplace'>https://github.com/marketplace</a></td></tr> <tr><td>Trending repos</td><td><a href='/?url=https://github.com/trending'>https://github.com/trending</a></td></tr> <tr><td>GitHub Sponsors</td><td><a href='/?url=https://github.com/open-source/sponsors'>https://github.com/open-source/sponsors</a></td></tr> <tr><td>Developer articles</td><td><a href='/?url=https://github.com/resources/articles'>https://github.com/resources/articles</a></td></tr> <tr><td>ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.</td><td><a href='/?url=https://github.blog/changelog/'>https://github.blog/changelog/</a></td></tr> <tr><td>Enterprises</td><td><a href='/?url=https://github.com/enterprise'>https://github.com/enterprise</a></td></tr> <tr><td>Team</td><td><a href='/?url=https://github.com/team'>https://github.com/team</a></td></tr> <tr><td>Startups</td><td><a href='/?url=https://github.com/enterprise/startups'>https://github.com/enterprise/startups</a></td></tr> <tr><td>Nonprofits</td><td><a href='/?url=https://github.com/solutions/industry/nonprofits'>https://github.com/solutions/industry/nonprofits</a></td></tr> <tr><td>Healthcare</td><td><a href='/?url=https://github.com/solutions/industry/healthcare'>https://github.com/solutions/industry/healthcare</a></td></tr> <tr><td>Financial services</td><td><a href='/?url=https://github.com/solutions/industry/financial-services'>https://github.com/solutions/industry/financial-services</a></td></tr> <tr><td>Manufacturing</td><td><a href='/?url=https://github.com/solutions/industry/manufacturing'>https://github.com/solutions/industry/manufacturing</a></td></tr> <tr><td>Government</td><td><a href='/?url=https://github.com/solutions/industry/government'>https://github.com/solutions/industry/government</a></td></tr> <tr><td>See all industries</td><td><a href='/?url=https://github.com/solutions/industry'>https://github.com/solutions/industry</a></td></tr> <tr><td>Why GitHub</td><td><a href='/?url=https://github.com/why-github'>https://github.com/why-github</a></td></tr> <tr><td>Customer Stories</td><td><a href='/?url=https://github.com/customer-stories'>https://github.com/customer-stories</a></td></tr> <tr><td>Business insights</td><td><a href='/?url=https://github.com/solutions/executive-insights'>https://github.com/solutions/executive-insights</a></td></tr> <tr><td>Trust Center</td><td><a href='/?url=https://github.com/trust-center'>https://github.com/trust-center</a></td></tr> <tr><td>GitHub Advanced SecurityEnterprise-grade code security</td><td><a href='/?url=https://github.com/security/advanced-security'>https://github.com/security/advanced-security</a></td></tr> <tr><td>Copilot for businessEnterprise-grade AI features</td><td><a href='/?url=https://github.com/features/copilot/copilot-business'>https://github.com/features/copilot/copilot-business</a></td></tr> <tr><td>Premium SupportEnterprise-grade 24/7 support</td><td><a href='/?url=https://github.com/enterprise/premium-support'>https://github.com/enterprise/premium-support</a></td></tr> <tr><td>Documentation</td><td><a href='/?url=https://docs.github.com/en'>https://docs.github.com/en</a></td></tr> <tr><td>Resource center</td><td><a href='/?url=https://github.com/resources'>https://github.com/resources</a></td></tr> <tr><td>Blog</td><td><a href='/?url=https://github.blog/'>https://github.blog/</a></td></tr> <tr><td>Events & webinars</td><td><a href='/?url=https://github.com/resources/events'>https://github.com/resources/events</a></td></tr> <tr><td>Community Forum</td><td><a href='/?url=https://github.com/orgs/community/discussions'>https://github.com/orgs/community/discussions</a></td></tr> <tr><td>Customer Stories</td><td><a href='/?url=https://github.com/customer-stories'>https://github.com/customer-stories</a></td></tr> <tr><td>Integrations</td><td><a href='/?url=https://github.com/marketplace'>https://github.com/marketplace</a></td></tr> <tr><td>Customer support</td><td><a href='/?url=https://help.github.com/'>https://help.github.com/</a></td></tr> <tr><td>Training</td><td><a href='/?url=https://learn.github.com/skills'>https://learn.github.com/skills</a></td></tr> <tr><td>GitHub Status</td><td><a href='/?url=https://www.githubstatus.com/'>https://www.githubstatus.com/</a></td></tr> <tr><td>About</td><td><a href='/?url=https://github.com/about'>https://github.com/about</a></td></tr> <tr><td>Partners</td><td><a href='/?url=https://github.com/partners'>https://github.com/partners</a></td></tr> <tr><td>Changelog</td><td><a href='/?url=https://github.blog/changelog/'>https://github.blog/changelog/</a></td></tr> <tr><td>GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.</td><td><a href='/?url=https://githubuniverse.com/'>https://githubuniverse.com/</a></td></tr> <tr><td>Pricing</td><td><a href='/?url=https://github.com/pricing'>https://github.com/pricing</a></td></tr> <tr><td>Sign in</td><td><a href='/?url=https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F19758'>https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F19758</a></td></tr> <tr><td>Sign up</td><td><a href='/?url=https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript'>https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript</a></td></tr> <tr><td>Reload</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues/19758'>https://github.com/microsoft/TypeScript/issues/19758</a></td></tr> <tr><td>Reload</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues/19758'>https://github.com/microsoft/TypeScript/issues/19758</a></td></tr> <tr><td>Reload</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues/19758'>https://github.com/microsoft/TypeScript/issues/19758</a></td></tr> <tr><td>microsoft</td><td><a href='/?url=https://github.com/microsoft'>https://github.com/microsoft</a></td></tr> <tr><td>TypeScript</td><td><a href='/?url=https://github.com/microsoft/TypeScript'>https://github.com/microsoft/TypeScript</a></td></tr> <tr><td>Code</td><td><a href='/?url=https://github.com/microsoft/TypeScript'>https://github.com/microsoft/TypeScript</a></td></tr> <tr><td>Issues5k (5k)</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues'>https://github.com/microsoft/TypeScript/issues</a></td></tr> <tr><td>Pull requests312 (312)</td><td><a href='/?url=https://github.com/microsoft/TypeScript/pulls'>https://github.com/microsoft/TypeScript/pulls</a></td></tr> <tr><td>Actions</td><td><a href='/?url=https://github.com/microsoft/TypeScript/actions'>https://github.com/microsoft/TypeScript/actions</a></td></tr> <tr><td>Projects</td><td><a href='/?url=https://github.com/microsoft/TypeScript/projects'>https://github.com/microsoft/TypeScript/projects</a></td></tr> <tr><td>Wiki</td><td><a href='/?url=https://github.com/microsoft/TypeScript/wiki'>https://github.com/microsoft/TypeScript/wiki</a></td></tr> <tr><td>Security and quality</td><td><a href='/?url=https://github.com/microsoft/TypeScript/security'>https://github.com/microsoft/TypeScript/security</a></td></tr> <tr><td>Insights</td><td><a href='/?url=https://github.com/microsoft/TypeScript/insights'>https://github.com/microsoft/TypeScript/insights</a></td></tr> <tr><td></td><td><a href='/?url=https://github.com/microsoft/TypeScript'>https://github.com/microsoft/TypeScript</a></td></tr> <tr><td>New issue</td><td><a href='/?url=https://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/19758'>https://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/19758</a></td></tr> <tr><td>New issue</td><td><a href='/?url=https://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/19758'>https://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/19758</a></td></tr> <tr><td>Event types do not exist in the Window interface</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues/19758#top'>https://github.com/microsoft/TypeScript/issues/19758#top</a></td></tr> <tr><td>DuplicateAn existing issue was already created</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Duplicate%22'>https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Duplicate%22</a></td></tr> <tr><td></td><td><a href='/?url=https://github.com/KevinSnyderCodes'>https://github.com/KevinSnyderCodes</a></td></tr> <tr><td>KevinSnyderCodes</td><td><a href='/?url=https://github.com/KevinSnyderCodes'>https://github.com/KevinSnyderCodes</a></td></tr> <tr><td>on Nov 6, 2017</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues/19758#issue-271340701'>https://github.com/microsoft/TypeScript/issues/19758#issue-271340701</a></td></tr> <tr><td>@types/jsdom</td><td><a href='/?url=https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/jsdom/index.d.ts'>https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/jsdom/index.d.ts</a></td></tr> <tr><td>jsdom</td><td><a href='/?url=https://github.com/tmpvar/jsdom'>https://github.com/tmpvar/jsdom</a></td></tr> <tr><td>@types/jsdom</td><td><a href='/?url=https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/jsdom/index.d.ts'>https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/jsdom/index.d.ts</a></td></tr> <tr><td>this issue</td><td><a href='/?url=https://github.com/DefinitelyTyped/DefinitelyTyped/issues/21235'>https://github.com/DefinitelyTyped/DefinitelyTyped/issues/21235</a></td></tr> <tr><td></td><td><a href='/?url=https://github.com/aluanhaddad'>https://github.com/aluanhaddad</a></td></tr> <tr><td>Aluan Haddad (aluanhaddad)</td><td><a href='/?url=https://github.com/aluanhaddad'>https://github.com/aluanhaddad</a></td></tr> <tr><td>on Nov 7, 2017</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues/19758#issuecomment-342372698'>https://github.com/microsoft/TypeScript/issues/19758#issuecomment-342372698</a></td></tr> <tr><td>Daniel Rosenwasser (DanielRosenwasser)</td><td><a href='/?url=https://github.com/DanielRosenwasser'>https://github.com/DanielRosenwasser</a></td></tr> <tr><td>BugA bug in TypeScript</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22'>https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22</a></td></tr> <tr><td>Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScript</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20lib.d.ts%22'>https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20lib.d.ts%22</a></td></tr> <tr><td>on Nov 7, 2017</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues/19758#event-1329228195'>https://github.com/microsoft/TypeScript/issues/19758#event-1329228195</a></td></tr> <tr><td>KevinSnyderCodes</td><td><a href='/?url=https://github.com/KevinSnyderCodes'>https://github.com/KevinSnyderCodes</a></td></tr> <tr><td>completed</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted'>https://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted</a></td></tr> <tr><td>on Nov 7, 2017</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues/19758#event-1329868154'>https://github.com/microsoft/TypeScript/issues/19758#event-1329868154</a></td></tr> <tr><td>KevinSnyderCodes</td><td><a href='/?url=https://github.com/KevinSnyderCodes'>https://github.com/KevinSnyderCodes</a></td></tr> <tr><td>on Nov 7, 2017</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues/19758#event-1329868342'>https://github.com/microsoft/TypeScript/issues/19758#event-1329868342</a></td></tr> <tr><td></td><td><a href='/?url=https://github.com/KevinSnyderCodes'>https://github.com/KevinSnyderCodes</a></td></tr> <tr><td>KevinSnyderCodes</td><td><a href='/?url=https://github.com/KevinSnyderCodes'>https://github.com/KevinSnyderCodes</a></td></tr> <tr><td>on Nov 7, 2017</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues/19758#issuecomment-342566560'>https://github.com/microsoft/TypeScript/issues/19758#issuecomment-342566560</a></td></tr> <tr><td></td><td><a href='/?url=https://github.com/mhegazy'>https://github.com/mhegazy</a></td></tr> <tr><td>Mohamed Hegazy (mhegazy)</td><td><a href='/?url=https://github.com/mhegazy'>https://github.com/mhegazy</a></td></tr> <tr><td>on Nov 7, 2017</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues/19758#issuecomment-342584020'>https://github.com/microsoft/TypeScript/issues/19758#issuecomment-342584020</a></td></tr> <tr><td>#18756</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues/18756'>https://github.com/microsoft/TypeScript/issues/18756</a></td></tr> <tr><td>#14052</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues/14052'>https://github.com/microsoft/TypeScript/issues/14052</a></td></tr> <tr><td>#19816</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues/19816'>https://github.com/microsoft/TypeScript/issues/19816</a></td></tr> <tr><td>Mohamed Hegazy (mhegazy)</td><td><a href='/?url=https://github.com/mhegazy'>https://github.com/mhegazy</a></td></tr> <tr><td>DuplicateAn existing issue was already created</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Duplicate%22'>https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Duplicate%22</a></td></tr> <tr><td>BugA bug in TypeScript</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22'>https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22</a></td></tr> <tr><td>Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScript</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20lib.d.ts%22'>https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20lib.d.ts%22</a></td></tr> <tr><td>on Nov 7, 2017</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues/19758#event-1330360730'>https://github.com/microsoft/TypeScript/issues/19758#event-1330360730</a></td></tr> <tr><td></td><td><a href='/?url=https://github.com/KevinSnyderCodes'>https://github.com/KevinSnyderCodes</a></td></tr> <tr><td>KevinSnyderCodes</td><td><a href='/?url=https://github.com/KevinSnyderCodes'>https://github.com/KevinSnyderCodes</a></td></tr> <tr><td>on Nov 7, 2017</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues/19758#issuecomment-342594228'>https://github.com/microsoft/TypeScript/issues/19758#issuecomment-342594228</a></td></tr> <tr><td>@types/jsdom</td><td><a href='/?url=https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/jsdom/index.d.ts'>https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/jsdom/index.d.ts</a></td></tr> <tr><td></td><td><a href='/?url=https://github.com/typescript-bot'>https://github.com/typescript-bot</a></td></tr> <tr><td>TypeScript Bot (typescript-bot)</td><td><a href='/?url=https://github.com/typescript-bot'>https://github.com/typescript-bot</a></td></tr> <tr><td>on Nov 21, 2017</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues/19758#issuecomment-346150176'>https://github.com/microsoft/TypeScript/issues/19758#issuecomment-346150176</a></td></tr> <tr><td>TypeScript Bot (typescript-bot)</td><td><a href='/?url=https://github.com/typescript-bot'>https://github.com/typescript-bot</a></td></tr> <tr><td>completed</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted'>https://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted</a></td></tr> <tr><td>on Nov 21, 2017</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues/19758#event-1352790567'>https://github.com/microsoft/TypeScript/issues/19758#event-1352790567</a></td></tr> <tr><td>microsoft</td><td><a href='/?url=https://github.com/microsoft'>https://github.com/microsoft</a></td></tr> <tr><td>on Jun 14, 2018</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues/19758#event-1682115373'>https://github.com/microsoft/TypeScript/issues/19758#event-1682115373</a></td></tr> <tr><td>Sign up for free</td><td><a href='/?url=https://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/19758'>https://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/19758</a></td></tr> <tr><td>Sign in to comment</td><td><a href='/?url=https://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/19758'>https://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/19758</a></td></tr> <tr><td>DuplicateAn existing issue was already created</td><td><a href='/?url=https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Duplicate%22'>https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Duplicate%22</a></td></tr> <tr><td> </td><td><a href='/?url=https://github.com'>https://github.com</a></td></tr> <tr><td>Terms</td><td><a href='/?url=https://docs.github.com/site-policy/github-terms/github-terms-of-service'>https://docs.github.com/site-policy/github-terms/github-terms-of-service</a></td></tr> <tr><td>Privacy</td><td><a href='/?url=https://docs.github.com/site-policy/privacy-policies/github-privacy-statement'>https://docs.github.com/site-policy/privacy-policies/github-privacy-statement</a></td></tr> <tr><td>Security</td><td><a href='/?url=https://github.com/security'>https://github.com/security</a></td></tr> <tr><td>Status</td><td><a href='/?url=https://www.githubstatus.com/'>https://www.githubstatus.com/</a></td></tr> <tr><td>Community</td><td><a href='/?url=https://github.community/'>https://github.community/</a></td></tr> <tr><td>Docs</td><td><a href='/?url=https://docs.github.com/'>https://docs.github.com/</a></td></tr> <tr><td>Contact</td><td><a href='/?url=https://support.github.com?tags=dotcom-footer'>https://support.github.com?tags=dotcom-footer</a></td></tr> </table> <p>Viewport: width=device-width <hr> URLs of <a href='/known-crawlers'>crawlers that visited me</a>.