Title: Add HTML5 API Interfaces to Window · Issue #28525 · microsoft/TypeScript · GitHub
Open Graph Title: Add HTML5 API Interfaces to Window · Issue #28525 · microsoft/TypeScript
X Title: Add HTML5 API Interfaces to Window · Issue #28525 · microsoft/TypeScript
Description: Attempting to define a check for HTML5 File API support in Angular like this: private hasHtml5FileApiSupport; constructor(@Optional() @Inject(DOCUMENT) document: Document) { const w = document.defaultView; this.hasHtml5FileApiSupport = w...
Open Graph Description: Attempting to define a check for HTML5 File API support in Angular like this: private hasHtml5FileApiSupport; constructor(@Optional() @Inject(DOCUMENT) document: Document) { const w = document.defa...
X Description: Attempting to define a check for HTML5 File API support in Angular like this: private hasHtml5FileApiSupport; constructor(@Optional() @Inject(DOCUMENT) document: Document) { const w = document.defa...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/28525
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add HTML5 API Interfaces to Window","articleBody":"Attempting to define a check for HTML5 File API support in Angular like this:\r\n\r\n```\r\nprivate hasHtml5FileApiSupport;\r\n constructor(@Optional() @Inject(DOCUMENT) document: Document) {\r\n const w = document.defaultView;\r\n this.hasHtml5FileApiSupport = w.File && w.FileReader && w.FileList && w.Blob;\r\n```\r\n\r\nHowever VSCode draws red squigglies under `File, FileReader, and FileList` since there are not part of the Window interface. It would be nice if they were. We can still do NPE checks on them.","author":{"url":"https://github.com/oleersoy","@type":"Person","name":"oleersoy"},"datePublished":"2018-11-14T17:53:32Z","url":"https://github.com/microsoft/TypeScript/issues/28525"}
| 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:964997ff-b6a8-0e15-707f-fcc16d4a1e49 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C5D8:2A7C1C:EB4EA5:13762D4:6B01D451 |
| html-safe-nonce | 18f8271a74bed1b0ac3521ecd58e21745ac2d4c7f72dd4e3dd60b67bf2c64631 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUQ4OjJBN0MxQzpFQjRFQTU6MTM3NjJENDo2QjAxRDQ1MSIsInZpc2l0b3JfaWQiOiI4OTcyODYzMjM5MjcyNjQ5ODA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d8bcee725f6188182c23bfc56acf7b595ef825094e66ab06fb9d91db89a7f14d |
| hovercard-subject-tag | issue:380816908 |
| 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/28525/issue_layout |
| twitter:image | https://opengraph.githubassets.com/22b5b8efd8f2e68a25bb4e5cce676f37553e9af186b98568a49b2dbe33651c74/microsoft/TypeScript/issues/28525 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/22b5b8efd8f2e68a25bb4e5cce676f37553e9af186b98568a49b2dbe33651c74/microsoft/TypeScript/issues/28525 |
| og:image:alt | Attempting to define a check for HTML5 File API support in Angular like this: private hasHtml5FileApiSupport; constructor(@Optional() @Inject(DOCUMENT) document: Document) { const w = document.defa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | oleersoy |
| 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