@types/sharedworker 0.0.49 → 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 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.49 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.49.
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
@@ -1,4 +1,4 @@
1
- /// <reference path="./index.iterable.d.ts" />
1
+ /// <reference path="./iterable.d.ts" />
2
2
 
3
3
  /////////////////////////////
4
4
  /// SharedWorker APIs
@@ -445,7 +445,7 @@ interface RequestInit {
445
445
  /** An AbortSignal to set request's signal. */
446
446
  signal?: AbortSignal | null;
447
447
  /** Can only be null. Used to disassociate request from any Window. */
448
- window?: any;
448
+ window?: null;
449
449
  }
450
450
 
451
451
  interface ResponseInit {
@@ -1821,7 +1821,6 @@ interface IDBTransactionEventMap {
1821
1821
  interface IDBTransaction extends EventTarget {
1822
1822
  /** Returns the transaction's connection. */
1823
1823
  readonly db: IDBDatabase;
1824
- readonly durability: IDBTransactionDurability;
1825
1824
  /** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
1826
1825
  readonly error: DOMException | null;
1827
1826
  /** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
@@ -5140,7 +5139,8 @@ declare namespace WebAssembly {
5140
5139
 
5141
5140
  var CompileError: {
5142
5141
  prototype: CompileError;
5143
- new(): CompileError;
5142
+ new(message?: string): CompileError;
5143
+ (message?: string): CompileError;
5144
5144
  };
5145
5145
 
5146
5146
  interface Global {
@@ -5167,7 +5167,8 @@ declare namespace WebAssembly {
5167
5167
 
5168
5168
  var LinkError: {
5169
5169
  prototype: LinkError;
5170
- new(): LinkError;
5170
+ new(message?: string): LinkError;
5171
+ (message?: string): LinkError;
5171
5172
  };
5172
5173
 
5173
5174
  interface Memory {
@@ -5196,7 +5197,8 @@ declare namespace WebAssembly {
5196
5197
 
5197
5198
  var RuntimeError: {
5198
5199
  prototype: RuntimeError;
5199
- new(): RuntimeError;
5200
+ new(message?: string): RuntimeError;
5201
+ (message?: string): RuntimeError;
5200
5202
  };
5201
5203
 
5202
5204
  interface Table {
@@ -5415,7 +5417,6 @@ type FontFaceSetLoadStatus = "loaded" | "loading";
5415
5417
  type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
5416
5418
  type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
5417
5419
  type IDBRequestReadyState = "done" | "pending";
5418
- type IDBTransactionDurability = "default" | "relaxed" | "strict";
5419
5420
  type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
5420
5421
  type ImageOrientation = "flipY" | "none";
5421
5422
  type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.49",
3
+ "version": "0.0.53",
4
4
  "description": "Types for the global scope of Shared Workers",
5
5
  "license": "MIT",
6
6
  "contributors": [],