---
# System prepended metadata

title: Overriding `lib`s and `@types/web`

---

# Overriding `lib`s and `@types/web`

https://github.com/microsoft/TypeScript/issues/44795

* Underlying idea here is to take parts of the DOM API and put them into `@types`
    * Have already started shipping `@types/web`.
    * Enables you to avoid breaking changes around the DOM when upgrading TypeScript versions.
* *But* now we need to give a way to disable the DOM types.
    * You can already remove `dom` from the `lib` field in `tsconfig.json`.
    * However, packages can have a `/// <reference >