Title: Some interfaces and properties declared in lib.dom are not being used by TS 3.9.2 · Issue #38544 · microsoft/TypeScript · GitHub
Open Graph Title: Some interfaces and properties declared in lib.dom are not being used by TS 3.9.2 · Issue #38544 · microsoft/TypeScript
X Title: Some interfaces and properties declared in lib.dom are not being used by TS 3.9.2 · Issue #38544 · microsoft/TypeScript
Description: TypeScript Version: 3.9.2 Search Terms: "types not found 3.9", "TS2304", "TS4060" Code function getTracks(media: HTMLMediaElement): AudioTrackList { return media.audioTracks; } Expected behavior: AudioTrackList and property audioTracks a...
Open Graph Description: TypeScript Version: 3.9.2 Search Terms: "types not found 3.9", "TS2304", "TS4060" Code function getTracks(media: HTMLMediaElement): AudioTrackList { return media.audioTracks; } Expected behavior: A...
X Description: TypeScript Version: 3.9.2 Search Terms: "types not found 3.9", "TS2304", "TS4060" Code function getTracks(media: HTMLMediaElement): AudioTrackList { return media.audio...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/38544
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Some interfaces and properties declared in lib.dom are not being used by TS 3.9.2","articleBody":"\u003c!--\r\nPlease try to reproduce the issue with the latest published version. It may have already been fixed.\r\nFor npm: `typescript@next`\r\nThis is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly\r\n-->\r\n**TypeScript Version:** 3.9.2\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:** \"types not found 3.9\", \"TS2304\", \"TS4060\"\r\n\r\n**Code**\r\n\r\n```ts\r\nfunction getTracks(media: HTMLMediaElement): AudioTrackList {\r\n return media.audioTracks;\r\n}\r\n```\r\n\r\n**Expected behavior:** AudioTrackList and property audioTracks are recognised as they were in 3.8.3\r\n\r\n**Actual behavior:** Several errors of type TS2304 and TS4060 are being raised.\r\n\r\n**Playground Link:**\r\n\r\n- [Playground TS 3.8.3 (no error)](https://www.typescriptlang.org/play/?ts=3.8.3&ssl=3&ssc=2&pln=1&pc=1#code/GYVwdgxgLglg9mABAcwKZQCoCcCGEDWAzgBQC2qAJjDgFyIASGAsgDJOXUCiANquWFACUdAIIgqcbHnwsYhKIgDeAKERrEWdCCxJyVHADoc4+FIKEA3MoC+QA)\r\n- [Playground TS 3.9.2 (error)](https://www.typescriptlang.org/play/?ssl=17&ssc=2&pln=1&pc=1#code/GYVwdgxgLglg9mABAcwKZQCoCcCGEDWAzgBQC2qAJjDgFyIASGAsgDJOXUCiANquWFACUdAIIgqcbHnwsYhKIgDeAKERrEWdCCxJyVHADoc4+FIKEA3MoC+QA)\r\n\r\n\r\n\r\n**Related Issues:** No\r\n","author":{"url":"https://github.com/Serabe","@type":"Person","name":"Serabe"},"datePublished":"2020-05-13T15:02:11Z","url":"https://github.com/microsoft/TypeScript/issues/38544"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e1133ce0-6d35-03c6-e9f5-60a381d790dd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 818C:4D9F2:C721C2:108D41E:6B01C9EE |
| html-safe-nonce | 156db7111355adfc20fcad7731b87ec1472cedc58660afe9ce2ebba50beac544 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MThDOjREOUYyOkM3MjFDMjoxMDhENDFFOjZCMDFDOUVFIiwidmlzaXRvcl9pZCI6IjcxNzE2NzIwNzU1MjA4MjE3NDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 82ddf615c8b635d74c4bcf8db27c4d79cb938835dc5e2faff21b5a00774c9435 |
| hovercard-subject-tag | issue:617524648 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/38544/issue_layout |
| twitter:image | https://opengraph.githubassets.com/61363e628ceaf0b78cd18bc3c273ea18da02cb3998a4fcfccee2e3ff418d503c/microsoft/TypeScript/issues/38544 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/61363e628ceaf0b78cd18bc3c273ea18da02cb3998a4fcfccee2e3ff418d503c/microsoft/TypeScript/issues/38544 |
| og:image:alt | TypeScript Version: 3.9.2 Search Terms: "types not found 3.9", "TS2304", "TS4060" Code function getTracks(media: HTMLMediaElement): AudioTrackList { return media.audioTracks; } Expected behavior: A... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Serabe |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width