@types/sharedworker 0.0.52 → 0.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/index.d.ts +1 -1
- package/{index.iterable.d.ts → iterable.d.ts} +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,13 +11,14 @@ This package contains type definitions which will set up the global environment
|
|
|
11
11
|
To use `@types/sharedworker` you need to do two things:
|
|
12
12
|
|
|
13
13
|
1. Install the dependency: `npm install @types/sharedworker --save-dev`, `yarn add @types/sharedworker --dev` or `pnpm add @types/sharedworker --dev`.
|
|
14
|
+
|
|
14
15
|
1. Update your [`tsconfig.json`](https://www.typescriptlang.org/tsconfig) to avoid clashing with the DOM APIs. There are two cases to consider depending on if you have `lib` defined in your `tsconfig.json` or not.
|
|
15
16
|
|
|
16
17
|
1. **Without "lib"** - You will need to add `"lib": []`. The value you want to add inside your lib should correlate to your [`"target"`](https://www.typescriptlang.org/tsconfig#target). For example if you had `"target": "es2017"`, then you would add `"lib": ["es2017"]`
|
|
17
18
|
1. **With "lib"** - You should remove `"dom"`.
|
|
18
19
|
|
|
19
|
-
That's all.
|
|
20
20
|
|
|
21
|
+
If you'd like to ensure that the DOM types are never accidentally included, you can use [@orta/types-noop](https://www.npmjs.com/package/@orta/type-noops) in TypeScript 4.5+.
|
|
21
22
|
|
|
22
23
|
## SemVer
|
|
23
24
|
|
|
@@ -27,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
27
28
|
|
|
28
29
|
## Deploy Metadata
|
|
29
30
|
|
|
30
|
-
You can read what changed in version 0.0.
|
|
31
|
+
You can read what changed in version 0.0.53 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.53.
|
package/index.d.ts
CHANGED
|
File without changes
|