Non-deprecated lib.dom.d.ts properties removed
See original GitHub issueWhile 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:
- Created 3 years ago
- Comments:15 (10 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Or event less thinking needed:
const fn = ( win: typeof window ) => { win.console.log() }
You can even do
const win: typeof globalThis
as globalThis will also have window properties.Not actually.
If you checkWindow.prototype.console
you’ll getundefined
, because it’s not a property.