Within my Angular 6 project, I encountered the following segment in tsconfig.json and ts.config.spec.json:
"lib": [
"es2016",
"dom"
]
I am curious about the role of dom
.
The official documentation explains: "... you can exclude declarations you do not want to include in your project, e.g. DOM if you are working on a node project using --lib es5, es6."
However, the practical implications of this statement are unclear to me. No specific information is provided regarding which declarations should be excluded.
My testing environment was dysfunctional until I added dom
to the lib
array in tsconfig.spec.ts. What exact purpose does this serve?