@types/sharedworker 0.0.166 → 0.0.168

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
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
28
28
 
29
29
  ## Deploy Metadata
30
30
 
31
- You can read what changed in version 0.0.166 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.166.
31
+ You can read what changed in version 0.0.168 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.168.
package/index.d.ts CHANGED
@@ -641,6 +641,39 @@ interface Transformer<I = any, O = any> {
641
641
  writableType?: undefined;
642
642
  }
643
643
 
644
+ interface URLPatternComponentResult {
645
+ groups?: Record<string, string | undefined>;
646
+ input?: string;
647
+ }
648
+
649
+ interface URLPatternInit {
650
+ baseURL?: string;
651
+ hash?: string;
652
+ hostname?: string;
653
+ password?: string;
654
+ pathname?: string;
655
+ port?: string;
656
+ protocol?: string;
657
+ search?: string;
658
+ username?: string;
659
+ }
660
+
661
+ interface URLPatternOptions {
662
+ ignoreCase?: boolean;
663
+ }
664
+
665
+ interface URLPatternResult {
666
+ hash?: URLPatternComponentResult;
667
+ hostname?: URLPatternComponentResult;
668
+ inputs?: URLPatternInput[];
669
+ password?: URLPatternComponentResult;
670
+ pathname?: URLPatternComponentResult;
671
+ port?: URLPatternComponentResult;
672
+ protocol?: URLPatternComponentResult;
673
+ search?: URLPatternComponentResult;
674
+ username?: URLPatternComponentResult;
675
+ }
676
+
644
677
  interface UnderlyingByteSource {
645
678
  autoAllocateChunkSize?: number;
646
679
  cancel?: UnderlyingSourceCancelCallback;
@@ -4905,12 +4938,6 @@ interface NotificationEventMap {
4905
4938
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
4906
4939
  */
4907
4940
  interface Notification extends EventTarget {
4908
- /**
4909
- * The **`badge`** read-only property of the Notification interface returns a string containing the URL of an image to represent the notification when there is not enough space to display the notification itself such as for example, the Android Notification Bar.
4910
- *
4911
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge)
4912
- */
4913
- readonly badge: string;
4914
4941
  /**
4915
4942
  * The **`body`** read-only property of the specified in the `body` option of the A string.
4916
4943
  *
@@ -7215,6 +7242,81 @@ declare var URL: {
7215
7242
  revokeObjectURL(url: string): void;
7216
7243
  };
7217
7244
 
7245
+ /**
7246
+ * The **`URLPattern`** interface of the URL Pattern API matches URLs or parts of URLs against a pattern.
7247
+ *
7248
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern)
7249
+ */
7250
+ interface URLPattern {
7251
+ readonly hasRegExpGroups: boolean;
7252
+ /**
7253
+ * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL.
7254
+ *
7255
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hash)
7256
+ */
7257
+ readonly hash: string;
7258
+ /**
7259
+ * The **`hostname`** read-only property of the URLPattern interface is a string containing the pattern used to match the hostname part of a URL.
7260
+ *
7261
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hostname)
7262
+ */
7263
+ readonly hostname: string;
7264
+ /**
7265
+ * The **`password`** read-only property of the URLPattern interface is a string containing the pattern used to match the password part of a URL.
7266
+ *
7267
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/password)
7268
+ */
7269
+ readonly password: string;
7270
+ /**
7271
+ * The **`pathname`** read-only property of the URLPattern interface is a string containing the pattern used to match the pathname part of a URL.
7272
+ *
7273
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/pathname)
7274
+ */
7275
+ readonly pathname: string;
7276
+ /**
7277
+ * The **`port`** read-only property of the URLPattern interface is a string containing the pattern used to match the port part of a URL.
7278
+ *
7279
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/port)
7280
+ */
7281
+ readonly port: string;
7282
+ /**
7283
+ * The **`protocol`** read-only property of the URLPattern interface is a string containing the pattern used to match the protocol part of a URL.
7284
+ *
7285
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/protocol)
7286
+ */
7287
+ readonly protocol: string;
7288
+ /**
7289
+ * The **`search`** read-only property of the URLPattern interface is a string containing the pattern used to match the search part of a URL.
7290
+ *
7291
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/search)
7292
+ */
7293
+ readonly search: string;
7294
+ /**
7295
+ * The **`username`** read-only property of the URLPattern interface is a string containing the pattern used to match the username part of a URL.
7296
+ *
7297
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/username)
7298
+ */
7299
+ readonly username: string;
7300
+ /**
7301
+ * The **`exec()`** method of the URLPattern interface takes a URL or object of URL parts, and returns either an object containing the results of matching the URL to the pattern, or `null` if the URL does not match the pattern.
7302
+ *
7303
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/exec)
7304
+ */
7305
+ exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
7306
+ /**
7307
+ * The **`test()`** method of the URLPattern interface takes a URL or object of URL parts, and returns a boolean indicating if the given input matches the current pattern.
7308
+ *
7309
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/test)
7310
+ */
7311
+ test(input?: URLPatternInput, baseURL?: string | URL): boolean;
7312
+ }
7313
+
7314
+ declare var URLPattern: {
7315
+ prototype: URLPattern;
7316
+ new(input: URLPatternInput, baseURL: string | URL, options?: URLPatternOptions): URLPattern;
7317
+ new(input?: URLPatternInput, options?: URLPatternOptions): URLPattern;
7318
+ };
7319
+
7218
7320
  /**
7219
7321
  * The **`URLSearchParams`** interface defines utility methods to work with the query string of a URL.
7220
7322
  *
@@ -11075,6 +11177,7 @@ type RequestInfo = Request | string;
11075
11177
  type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
11076
11178
  type TimerHandler = string | Function;
11077
11179
  type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
11180
+ type URLPatternInput = string | URLPatternInit;
11078
11181
  type Uint32List = Uint32Array<ArrayBufferLike> | GLuint[];
11079
11182
  type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
11080
11183
  type BinaryType = "arraybuffer" | "blob";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.166",
3
+ "version": "0.0.168",
4
4
  "description": "Types for the global scope of Shared Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -641,6 +641,39 @@ interface Transformer<I = any, O = any> {
641
641
  writableType?: undefined;
642
642
  }
643
643
 
644
+ interface URLPatternComponentResult {
645
+ groups?: Record<string, string | undefined>;
646
+ input?: string;
647
+ }
648
+
649
+ interface URLPatternInit {
650
+ baseURL?: string;
651
+ hash?: string;
652
+ hostname?: string;
653
+ password?: string;
654
+ pathname?: string;
655
+ port?: string;
656
+ protocol?: string;
657
+ search?: string;
658
+ username?: string;
659
+ }
660
+
661
+ interface URLPatternOptions {
662
+ ignoreCase?: boolean;
663
+ }
664
+
665
+ interface URLPatternResult {
666
+ hash?: URLPatternComponentResult;
667
+ hostname?: URLPatternComponentResult;
668
+ inputs?: URLPatternInput[];
669
+ password?: URLPatternComponentResult;
670
+ pathname?: URLPatternComponentResult;
671
+ port?: URLPatternComponentResult;
672
+ protocol?: URLPatternComponentResult;
673
+ search?: URLPatternComponentResult;
674
+ username?: URLPatternComponentResult;
675
+ }
676
+
644
677
  interface UnderlyingByteSource {
645
678
  autoAllocateChunkSize?: number;
646
679
  cancel?: UnderlyingSourceCancelCallback;
@@ -4905,12 +4938,6 @@ interface NotificationEventMap {
4905
4938
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
4906
4939
  */
4907
4940
  interface Notification extends EventTarget {
4908
- /**
4909
- * The **`badge`** read-only property of the Notification interface returns a string containing the URL of an image to represent the notification when there is not enough space to display the notification itself such as for example, the Android Notification Bar.
4910
- *
4911
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge)
4912
- */
4913
- readonly badge: string;
4914
4941
  /**
4915
4942
  * The **`body`** read-only property of the specified in the `body` option of the A string.
4916
4943
  *
@@ -7215,6 +7242,81 @@ declare var URL: {
7215
7242
  revokeObjectURL(url: string): void;
7216
7243
  };
7217
7244
 
7245
+ /**
7246
+ * The **`URLPattern`** interface of the URL Pattern API matches URLs or parts of URLs against a pattern.
7247
+ *
7248
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern)
7249
+ */
7250
+ interface URLPattern {
7251
+ readonly hasRegExpGroups: boolean;
7252
+ /**
7253
+ * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL.
7254
+ *
7255
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hash)
7256
+ */
7257
+ readonly hash: string;
7258
+ /**
7259
+ * The **`hostname`** read-only property of the URLPattern interface is a string containing the pattern used to match the hostname part of a URL.
7260
+ *
7261
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hostname)
7262
+ */
7263
+ readonly hostname: string;
7264
+ /**
7265
+ * The **`password`** read-only property of the URLPattern interface is a string containing the pattern used to match the password part of a URL.
7266
+ *
7267
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/password)
7268
+ */
7269
+ readonly password: string;
7270
+ /**
7271
+ * The **`pathname`** read-only property of the URLPattern interface is a string containing the pattern used to match the pathname part of a URL.
7272
+ *
7273
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/pathname)
7274
+ */
7275
+ readonly pathname: string;
7276
+ /**
7277
+ * The **`port`** read-only property of the URLPattern interface is a string containing the pattern used to match the port part of a URL.
7278
+ *
7279
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/port)
7280
+ */
7281
+ readonly port: string;
7282
+ /**
7283
+ * The **`protocol`** read-only property of the URLPattern interface is a string containing the pattern used to match the protocol part of a URL.
7284
+ *
7285
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/protocol)
7286
+ */
7287
+ readonly protocol: string;
7288
+ /**
7289
+ * The **`search`** read-only property of the URLPattern interface is a string containing the pattern used to match the search part of a URL.
7290
+ *
7291
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/search)
7292
+ */
7293
+ readonly search: string;
7294
+ /**
7295
+ * The **`username`** read-only property of the URLPattern interface is a string containing the pattern used to match the username part of a URL.
7296
+ *
7297
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/username)
7298
+ */
7299
+ readonly username: string;
7300
+ /**
7301
+ * The **`exec()`** method of the URLPattern interface takes a URL or object of URL parts, and returns either an object containing the results of matching the URL to the pattern, or `null` if the URL does not match the pattern.
7302
+ *
7303
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/exec)
7304
+ */
7305
+ exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
7306
+ /**
7307
+ * The **`test()`** method of the URLPattern interface takes a URL or object of URL parts, and returns a boolean indicating if the given input matches the current pattern.
7308
+ *
7309
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/test)
7310
+ */
7311
+ test(input?: URLPatternInput, baseURL?: string | URL): boolean;
7312
+ }
7313
+
7314
+ declare var URLPattern: {
7315
+ prototype: URLPattern;
7316
+ new(input: URLPatternInput, baseURL: string | URL, options?: URLPatternOptions): URLPattern;
7317
+ new(input?: URLPatternInput, options?: URLPatternOptions): URLPattern;
7318
+ };
7319
+
7218
7320
  /**
7219
7321
  * The **`URLSearchParams`** interface defines utility methods to work with the query string of a URL.
7220
7322
  *
@@ -11075,6 +11177,7 @@ type RequestInfo = Request | string;
11075
11177
  type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
11076
11178
  type TimerHandler = string | Function;
11077
11179
  type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
11180
+ type URLPatternInput = string | URLPatternInit;
11078
11181
  type Uint32List = Uint32Array | GLuint[];
11079
11182
  type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
11080
11183
  type BinaryType = "arraybuffer" | "blob";
package/ts5.6/index.d.ts CHANGED
@@ -641,6 +641,39 @@ interface Transformer<I = any, O = any> {
641
641
  writableType?: undefined;
642
642
  }
643
643
 
644
+ interface URLPatternComponentResult {
645
+ groups?: Record<string, string | undefined>;
646
+ input?: string;
647
+ }
648
+
649
+ interface URLPatternInit {
650
+ baseURL?: string;
651
+ hash?: string;
652
+ hostname?: string;
653
+ password?: string;
654
+ pathname?: string;
655
+ port?: string;
656
+ protocol?: string;
657
+ search?: string;
658
+ username?: string;
659
+ }
660
+
661
+ interface URLPatternOptions {
662
+ ignoreCase?: boolean;
663
+ }
664
+
665
+ interface URLPatternResult {
666
+ hash?: URLPatternComponentResult;
667
+ hostname?: URLPatternComponentResult;
668
+ inputs?: URLPatternInput[];
669
+ password?: URLPatternComponentResult;
670
+ pathname?: URLPatternComponentResult;
671
+ port?: URLPatternComponentResult;
672
+ protocol?: URLPatternComponentResult;
673
+ search?: URLPatternComponentResult;
674
+ username?: URLPatternComponentResult;
675
+ }
676
+
644
677
  interface UnderlyingByteSource {
645
678
  autoAllocateChunkSize?: number;
646
679
  cancel?: UnderlyingSourceCancelCallback;
@@ -4905,12 +4938,6 @@ interface NotificationEventMap {
4905
4938
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
4906
4939
  */
4907
4940
  interface Notification extends EventTarget {
4908
- /**
4909
- * The **`badge`** read-only property of the Notification interface returns a string containing the URL of an image to represent the notification when there is not enough space to display the notification itself such as for example, the Android Notification Bar.
4910
- *
4911
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge)
4912
- */
4913
- readonly badge: string;
4914
4941
  /**
4915
4942
  * The **`body`** read-only property of the specified in the `body` option of the A string.
4916
4943
  *
@@ -7215,6 +7242,81 @@ declare var URL: {
7215
7242
  revokeObjectURL(url: string): void;
7216
7243
  };
7217
7244
 
7245
+ /**
7246
+ * The **`URLPattern`** interface of the URL Pattern API matches URLs or parts of URLs against a pattern.
7247
+ *
7248
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern)
7249
+ */
7250
+ interface URLPattern {
7251
+ readonly hasRegExpGroups: boolean;
7252
+ /**
7253
+ * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL.
7254
+ *
7255
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hash)
7256
+ */
7257
+ readonly hash: string;
7258
+ /**
7259
+ * The **`hostname`** read-only property of the URLPattern interface is a string containing the pattern used to match the hostname part of a URL.
7260
+ *
7261
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hostname)
7262
+ */
7263
+ readonly hostname: string;
7264
+ /**
7265
+ * The **`password`** read-only property of the URLPattern interface is a string containing the pattern used to match the password part of a URL.
7266
+ *
7267
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/password)
7268
+ */
7269
+ readonly password: string;
7270
+ /**
7271
+ * The **`pathname`** read-only property of the URLPattern interface is a string containing the pattern used to match the pathname part of a URL.
7272
+ *
7273
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/pathname)
7274
+ */
7275
+ readonly pathname: string;
7276
+ /**
7277
+ * The **`port`** read-only property of the URLPattern interface is a string containing the pattern used to match the port part of a URL.
7278
+ *
7279
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/port)
7280
+ */
7281
+ readonly port: string;
7282
+ /**
7283
+ * The **`protocol`** read-only property of the URLPattern interface is a string containing the pattern used to match the protocol part of a URL.
7284
+ *
7285
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/protocol)
7286
+ */
7287
+ readonly protocol: string;
7288
+ /**
7289
+ * The **`search`** read-only property of the URLPattern interface is a string containing the pattern used to match the search part of a URL.
7290
+ *
7291
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/search)
7292
+ */
7293
+ readonly search: string;
7294
+ /**
7295
+ * The **`username`** read-only property of the URLPattern interface is a string containing the pattern used to match the username part of a URL.
7296
+ *
7297
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/username)
7298
+ */
7299
+ readonly username: string;
7300
+ /**
7301
+ * The **`exec()`** method of the URLPattern interface takes a URL or object of URL parts, and returns either an object containing the results of matching the URL to the pattern, or `null` if the URL does not match the pattern.
7302
+ *
7303
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/exec)
7304
+ */
7305
+ exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
7306
+ /**
7307
+ * The **`test()`** method of the URLPattern interface takes a URL or object of URL parts, and returns a boolean indicating if the given input matches the current pattern.
7308
+ *
7309
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/test)
7310
+ */
7311
+ test(input?: URLPatternInput, baseURL?: string | URL): boolean;
7312
+ }
7313
+
7314
+ declare var URLPattern: {
7315
+ prototype: URLPattern;
7316
+ new(input: URLPatternInput, baseURL: string | URL, options?: URLPatternOptions): URLPattern;
7317
+ new(input?: URLPatternInput, options?: URLPatternOptions): URLPattern;
7318
+ };
7319
+
7218
7320
  /**
7219
7321
  * The **`URLSearchParams`** interface defines utility methods to work with the query string of a URL.
7220
7322
  *
@@ -11075,6 +11177,7 @@ type RequestInfo = Request | string;
11075
11177
  type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
11076
11178
  type TimerHandler = string | Function;
11077
11179
  type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
11180
+ type URLPatternInput = string | URLPatternInit;
11078
11181
  type Uint32List = Uint32Array | GLuint[];
11079
11182
  type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
11080
11183
  type BinaryType = "arraybuffer" | "blob";