简体   繁体   English

npm打字稿覆盖index.d.ts“ ///

[英]npm typescript override index.d.ts “/// <reference types=”

After calling npm install I have one index.d.ts in which the /// <reference types="[WrongPath]"/> is wrong. 调用npm install我有一个index.d.ts ,其中/// <reference types="[WrongPath]"/>是错误的。

I am new to npm and typescript (and generally web development); 我是npm和Typescript(通常是Web开发)的新手; Is it possible to override the generated index.d.ts file and set the reference types to something else? 是否可以覆盖生成的index.d.ts文件并将reference types设置为其他reference types

So if npm install is called the correct reference is set? 那么,如果调用npm install设置了正确的引用?

我创建了一个作业,该作业将在npm安装后自动运行以替换该行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 “module/index.d.ts”和“@types/module/index.d.ts”之间的打字稿冲突 - Typescript conflict between “module/index.d.ts” and “@types/module/index.d.ts” 如何在index.d.ts typescript定义文件中引用Redux类型? - How to reference Redux types in index.d.ts typescript definition file? Typescript 未从模块的 index.d.ts 中找到类型 - Typescript not finding types from module's index.d.ts index.d.ts 文件未发布到 NPM - index.d.ts file not published to NPM @types/googlemaps/index.d.ts' 不是模块 - @types/googlemaps/index.d.ts' is not a module 如何从带有 jsdoc 但没有 typescript 的现有 npm 包中获取 vscode 中的智能感知(index.d.ts) - How to get intellisense in vscode from an existing npm package with jsdoc but without typescript (index.d.ts) Typescript 在 npm 运行构建期间 plotly.js/index.d.ts 中的错误 - Typescript error in plotly.js/index.d.ts during npm run build 如何将许多 TypeScript 声明文件捆绑到一个 npm package 并从 index.d.ts 导入? - How to bundle many TypeScript declaration files into an npm package and import from index.d.ts? 打字稿库 index.d.ts 未在其他打字稿应用程序中使用 - Typescript Library index.d.ts not used in other typescript application Typescript+webpack: typescript emmited no output for index.d.ts - Typescript+webpack: typescript emmited no output for index.d.ts
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM