[英]Ignore generation of declarations for specific files
src/
user.ts
department.ts
using above as a context structure, if i do tsc
is it possible to ignore/prevent generaton of declaration files for department.ts
within tsconfig or webpack while bulding the app?使用上面作为上下文结构,如果我这样做
tsc
是否可以在构建应用程序时忽略/防止在 tsconfig 或 webpack 中生成department.ts
的声明文件? Currently its generating declaration for all the files within src directory目前它为 src 目录中的所有文件生成声明
Yes, you can use the exclude
key in the tsconfig.json
file.是的,您可以使用
tsconfig.json
文件中的exclude
键。
{
// ...other config options
"exclude": ["src/user.ts", "src/department.ts"]
}
See the TypeScript documentation for more details有关详细信息,请参阅TypeScript 文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.