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? Currently its generating declaration for all the files within src directory
Yes, you can use the exclude
key in the tsconfig.json
file.
{
// ...other config options
"exclude": ["src/user.ts", "src/department.ts"]
}
See the TypeScript documentation for more details
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.