How to Force JavaScript Variables to use Specific DOM APIs
Too Long; Didn't Read
To take advantage of JavaScript IntelliSense and code completion when using a certain awesome text editor *ehem* VS Code, you need to be able to declare the correct interfaces for variables containing DOM elements. For example, if you want to make a variable use a specific DOM interface like the generic type HTMLElement, just do: Before assigning it to a specific type: "Before you assign it," "before you do it" Then, you get code completion for all the methods and other awesomeness that TypeScript doesn’t.