Is there a way to enable IntelliSense for JavaScript files in a TypeScript project?
If I import a function from a JavaScript package like this:
import foo from "js-package"
and I'm in index.js, I see the IntelliSense picking up JSDoc comments and listing the parameters taken by the function;
if I'm in a .ts file however, I don't get any of this.
How do I enable JavaScript IntelliSense in .ts files, using VS Code?
EDIT: This is what happens:
Ironic, isn't it?






// @ts-checkto the first line of the js-file. It might do what you want.