Forbidden non-null assertion lint error for document.getElementById()
I am using TypeScript, and I have the following definition: const contentElement = document.getElementById("contentId")!; Where I know for sure the relevant element is defined in the HTML file with contendId. I have ran eslint, and I get the following error: Forbidden non-null assertion. So… What would be the proper way to handle this case? Tending… Read More Forbidden non-null assertion lint error for document.getElementById()