How can I make JSDoc/TypeScript understand JavaScript imports?
I have added // @ts-check to a JavaScript file to use JSDoc. Suddenly I get errors in VS Code for functions included with a script tag: <script src="imported-file.js"></script> I can silence these by adding a lot of // @ts-ignore (or…