! Also happens to be the correct way to deal with this, I have to use it sometimes when using typescript for web frontend stuff since it's the only way to make the compiler know a certain element is going to be in the DOM since tsc doesn't read the HTML files in your project as far as I know.
View all comments
Show parent comment
8
u/TheGhostOfInky shameless Jan 22 '22
As opposed to the "shut up typescript, I don't know how to do this properly" comment,
//@ts-ignore