Visual Studio Code的intellisense在导入单个或多个导出时开箱即用。但是,我希望使用intellisense来导入整个模块,如下所示: import * as MyModule from 'path/to/MyModule'; 因此,当我开始输入MyM...时,我希望智能感知起作用,并建议导入整个模块。有没有相应的设置或插件?
我已经决定将js项目迁移到ts中,但是我面临以下问题: ts文件中的所有导入都缺少已编译的js文件中的.js扩展名。这反过来会引发以下错误:我的浏览器控制台上的Loading failed for the module with source “http://localhost:5500/build/test/firstlet name = new First("this is my name").name;