文档/TypeScript 专题/类型获取

自动类型获取

CodePus 自动获取 npm 包的 @types 声明文件,为 JavaScript 项目提供更好的 IntelliSense。

配置

typescript.disableAutomaticTypeAcquisition: 禁用自动类型获取。 typescript.npm: 指定 npm 可执行文件路径。