@types/web
Advanced tools
Comparing version 0.0.37 to 0.0.38
{ | ||
"name": "@types/web", | ||
"version": "0.0.37", | ||
"version": "0.0.38", | ||
"description": "Types for the DOM, and other web technologies in browsers", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -11,2 +11,16 @@ ### `@types/web` - Types for the DOM and most web-related APIs | ||
With TypeScript 4.5+ using [lib replacement](https://github.com/microsoft/TypeScript/pull/45771), you can swap the DOM lib with this dependency: | ||
```sh | ||
pnpm add @typescript/lib-dom@npm:@types/web --save-dev | ||
npm install @typescript/lib-dom@npm:@types/web --save-dev | ||
yarn add @typescript/lib-dom@npm:@types/web --dev | ||
``` | ||
That's all. | ||
<details> | ||
<summary>TypeScript 4.4 and below</summary> | ||
<br/> | ||
To use `@types/web` you need to do two things: | ||
@@ -21,4 +35,7 @@ | ||
That's all. | ||
Removing `"dom"` gives @types/web the chance to provide the same set of global declarations. However, It's possible that your dependencies pull in the TypeScript DOM library, in which case you can either try to make that not happen, or use TypeScript 4.5 to systematically replace the library. | ||
</details> | ||
## SemVer | ||
@@ -35,2 +52,2 @@ | ||
You can read what changed in version 0.0.37 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.37. | ||
You can read what changed in version 0.0.38 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.38. |
Sorry, the diff of this file is too big to display
802870
50