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

Add typings for PerformanceObserver #25651

Closed
bradfrosty opened this issue Jul 13, 2018 · 2 comments
Closed

Add typings for PerformanceObserver #25651

bradfrosty opened this issue Jul 13, 2018 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@bradfrosty
Copy link

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:
PerformanceObserver (and residual interfaces) are defined on Window.

Actual behavior:
Currently, this is only defined in lib.webworker.d.ts. PerformanceObserver should also be defined on Window in lib.dom.d.ts as it is not an experimental technology according to MDN.

Playground Link: http://www.typescriptlang.org/play/#src=let%20ob1%20%3D%20new%20window.PerformanceObserver()%3B

@mhegazy
Copy link
Contributor

mhegazy commented Jul 13, 2018

Duplicate of #19816

@mhegazy mhegazy marked this as a duplicate of #19816 Jul 13, 2018
@mhegazy mhegazy added the Duplicate An existing issue was already created label Jul 13, 2018
@typescript-bot
Copy link
Collaborator

Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants