danyella
danyella
TTCTheo's Typesafe Cult
Created by danyella on 6/21/2024 in #questions
What NoSQL databases are actually good?
No description
131 replies
TTCTheo's Typesafe Cult
Created by danyella on 6/18/2024 in #questions
Get HTMLElement from Element
Hey! It may be dumb? Idk. Anyways, I got an Element object from document.querySelector(), tho what I need to suit my needs is an HTMLElement. And when doing ↓
if (element !instanceof HTMLElement) return;
if (element !instanceof HTMLElement) return;
Typescript doesn't consider element as an HTMLElement in the code after that if . I know why, but I don't know how to do otherwise so... Asking here :p
5 replies