Title: Add typings for PerformanceObserver · Issue #25651 · microsoft/TypeScript · GitHub
Open Graph Title: Add typings for PerformanceObserver · Issue #25651 · microsoft/TypeScript
X Title: Add typings for PerformanceObserver · Issue #25651 · microsoft/TypeScript
Description: TypeScript Version: 3.0.0-dev.201xxxxx Search Terms: PerformanceObserver performance observer Code let ob1 = new window.PerformanceObserver(); // property 'PerformanceObserver' does not exist on type 'Window' Expected behavior: Performan...
Open Graph Description: TypeScript Version: 3.0.0-dev.201xxxxx Search Terms: PerformanceObserver performance observer Code let ob1 = new window.PerformanceObserver(); // property 'PerformanceObserver' does not exist on ty...
X Description: TypeScript Version: 3.0.0-dev.201xxxxx Search Terms: PerformanceObserver performance observer Code let ob1 = new window.PerformanceObserver(); // property 'PerformanceObserver' does not exi...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/25651
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add typings for PerformanceObserver","articleBody":"\u003c!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:** 3.0.0-dev.201xxxxx\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:** \r\n* PerformanceObserver\r\n* performance observer\r\n\r\n**Code**\r\n\r\n```ts\r\nlet ob1 = new window.PerformanceObserver(); // property 'PerformanceObserver' does not exist on type 'Window'\r\n```\r\n\r\n**Expected behavior:**\r\n`PerformanceObserver` (and residual interfaces) are defined on `Window`.\r\n\r\n**Actual behavior:**\r\nCurrently, this is only defined in [`lib.webworker.d.ts`](https://github.com/Microsoft/TypeScript/blame/cca2631a90fb414f7c830f2d2895a3b5f0db896f/lib/lib.webworker.d.ts#L1741). `PerformanceObserver` should also be defined on `Window` in `lib.dom.d.ts` as it is not an experimental technology [according to MDN](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver).\r\n\r\n**Playground Link:** http://www.typescriptlang.org/play/#src=let%20ob1%20%3D%20new%20window.PerformanceObserver()%3B\r\n\r\n","author":{"url":"https://github.com/bradfrosty","@type":"Person","name":"bradfrosty"},"datePublished":"2018-07-13T20:35:25Z","url":"https://github.com/microsoft/TypeScript/issues/25651"}
| 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:3877f82a-7bbb-4bc7-6ab1-1c82a312dd7f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD00:17FB7:2191549:2A966C0:6B01AFA2 |
| html-safe-nonce | 66b9307e19cc2f5d6279292f936bf9fe10b0b138a2058b5d59528d9210d8eaf3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDAwOjE3RkI3OjIxOTE1NDk6MkE5NjZDMDo2QjAxQUZBMiIsInZpc2l0b3JfaWQiOiIxNjIxNzEwMjI4OTEzNTAwMDY2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3abf4a83321cdbf558e636522c7de58eef3f37465c7757a6867665b9e6ac729c |
| hovercard-subject-tag | issue:341151778 |
| 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/25651/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6220c921ce73e41c6d64a62f3c90c6e2753da1ae98111b9527d78be4c4dc8137/microsoft/TypeScript/issues/25651 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6220c921ce73e41c6d64a62f3c90c6e2753da1ae98111b9527d78be4c4dc8137/microsoft/TypeScript/issues/25651 |
| og:image:alt | TypeScript Version: 3.0.0-dev.201xxxxx Search Terms: PerformanceObserver performance observer Code let ob1 = new window.PerformanceObserver(); // property 'PerformanceObserver' does not exist on ty... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bradfrosty |
| 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