When setting up my app, I am using a tsconfig.json file to specify which typings should be used.
{
"compilerOptions": {
"types" : ["node", "lodash", "express"]
}
}
This configuration allows me to import typings from ./node_modules/@types/node
, ./node_modules/@types/lodash
, and ./node_modules/@types/expres
.
Now my concern is how to configure typings for self-contained modules?
For example, let's take the zone.js package that contains both the library code and type definitions.
- ./node_modules/zone.js/dist/zone.js
- ./node_modules/zone.js/dist/zone.min.js
- ./node_modules/zone.js/dist/zone.js.d.ts
What should be added to the tsconfig.json file in order to include zone.js.d.ts
?