How to Force JavaScript Variables to use Specific DOM APIs

How to Force JavaScript Variables to use Specific DOM APIs

To take advantage of JavaScript IntelliSense and code completion when using a certain awesome text editor ehem VS Code ehem, you need to be able to declare the correct interfaces for variables containing DOM elements.