question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Non-deprecated lib.dom.d.ts properties removed

See original GitHub issue

While trying the TS 3.9 RC I’m encountering numerous compile errors against lib.dom.d.ts against properties that have been removed. I noticed the introduction of these changes in this PR, notably properties of CSSStyleDeclaration such as ms*, webkit*, and layout*. Given many of these weren’t marked deprecated I want to make sure this is expected behavior.

(Making this issue after speaking with @DanielRosenwasser and tagging @sandersn . Thanks!)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:15 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
HolgerJeromincommented, May 15, 2020

Or event less thinking needed: const fn = ( win: typeof window ) => { win.console.log() }

2reactions
saschanazcommented, May 21, 2020

You can even do const win: typeof globalThis as globalThis will also have window properties.

I feel like console should be a property of the Window interface if we’re following the webidl json file

Not actually. If you check Window.prototype.console you’ll get undefined, because it’s not a property.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Non-deprecated lib.dom.d.ts properties removed #857 - GitHub
While trying the TS 3.9 RC I'm encountering numerous compile errors against lib.dom.d.ts against properties that have been removed.
Read more >
Problem with missing property in lib.dom.d.ts file when update ...
I have found the definition of the Node type in the lib.dom.d.ts (full path: C:\Users\my_user\AppData\Local\Programs\Microsoft VS ...
Read more >
Documentation - TypeScript 4.9
JavaScript's in operator can check whether a property exists on an object. Previously, TypeScript allowed us to narrow away any types that don't...
Read more >
ts2740: type 'collection ' is missing the following properties ...
I figured it out. :) I changed the return type of the methods in product.service.ts as an observable product array.
Read more >
@material/dom | Yarn - Package Manager
Material Components for the web helps developers execute Material Design. Developed by a core team of engineers and UX designers at Google, these...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found