@types/webworker 0.0.14 → 0.0.15

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
@@ -45,4 +45,4 @@ This project does not respect semantic versioning as almost every change could p
45
45
 
46
46
  ## Deploy Metadata
47
47
 
48
- You can read what changed in version 0.0.14 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.14.
48
+ You can read what changed in version 0.0.15 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.15.
package/index.d.ts CHANGED
@@ -855,6 +855,39 @@ interface Transformer<I = any, O = any> {
855
855
  writableType?: undefined;
856
856
  }
857
857
 
858
+ interface URLPatternComponentResult {
859
+ groups?: Record<string, string | undefined>;
860
+ input?: string;
861
+ }
862
+
863
+ interface URLPatternInit {
864
+ baseURL?: string;
865
+ hash?: string;
866
+ hostname?: string;
867
+ password?: string;
868
+ pathname?: string;
869
+ port?: string;
870
+ protocol?: string;
871
+ search?: string;
872
+ username?: string;
873
+ }
874
+
875
+ interface URLPatternOptions {
876
+ ignoreCase?: boolean;
877
+ }
878
+
879
+ interface URLPatternResult {
880
+ hash?: URLPatternComponentResult;
881
+ hostname?: URLPatternComponentResult;
882
+ inputs?: URLPatternInput[];
883
+ password?: URLPatternComponentResult;
884
+ pathname?: URLPatternComponentResult;
885
+ port?: URLPatternComponentResult;
886
+ protocol?: URLPatternComponentResult;
887
+ search?: URLPatternComponentResult;
888
+ username?: URLPatternComponentResult;
889
+ }
890
+
858
891
  interface UnderlyingByteSource {
859
892
  autoAllocateChunkSize?: number;
860
893
  cancel?: UnderlyingSourceCancelCallback;
@@ -8815,6 +8848,81 @@ declare var URL: {
8815
8848
  revokeObjectURL(url: string): void;
8816
8849
  };
8817
8850
 
8851
+ /**
8852
+ * The **`URLPattern`** interface of the URL Pattern API matches URLs or parts of URLs against a pattern.
8853
+ *
8854
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern)
8855
+ */
8856
+ interface URLPattern {
8857
+ readonly hasRegExpGroups: boolean;
8858
+ /**
8859
+ * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL.
8860
+ *
8861
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hash)
8862
+ */
8863
+ readonly hash: string;
8864
+ /**
8865
+ * The **`hostname`** read-only property of the URLPattern interface is a string containing the pattern used to match the hostname part of a URL.
8866
+ *
8867
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hostname)
8868
+ */
8869
+ readonly hostname: string;
8870
+ /**
8871
+ * The **`password`** read-only property of the URLPattern interface is a string containing the pattern used to match the password part of a URL.
8872
+ *
8873
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/password)
8874
+ */
8875
+ readonly password: string;
8876
+ /**
8877
+ * The **`pathname`** read-only property of the URLPattern interface is a string containing the pattern used to match the pathname part of a URL.
8878
+ *
8879
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/pathname)
8880
+ */
8881
+ readonly pathname: string;
8882
+ /**
8883
+ * The **`port`** read-only property of the URLPattern interface is a string containing the pattern used to match the port part of a URL.
8884
+ *
8885
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/port)
8886
+ */
8887
+ readonly port: string;
8888
+ /**
8889
+ * The **`protocol`** read-only property of the URLPattern interface is a string containing the pattern used to match the protocol part of a URL.
8890
+ *
8891
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/protocol)
8892
+ */
8893
+ readonly protocol: string;
8894
+ /**
8895
+ * The **`search`** read-only property of the URLPattern interface is a string containing the pattern used to match the search part of a URL.
8896
+ *
8897
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/search)
8898
+ */
8899
+ readonly search: string;
8900
+ /**
8901
+ * The **`username`** read-only property of the URLPattern interface is a string containing the pattern used to match the username part of a URL.
8902
+ *
8903
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/username)
8904
+ */
8905
+ readonly username: string;
8906
+ /**
8907
+ * 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.
8908
+ *
8909
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/exec)
8910
+ */
8911
+ exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
8912
+ /**
8913
+ * 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.
8914
+ *
8915
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/test)
8916
+ */
8917
+ test(input?: URLPatternInput, baseURL?: string | URL): boolean;
8918
+ }
8919
+
8920
+ declare var URLPattern: {
8921
+ prototype: URLPattern;
8922
+ new(input: URLPatternInput, baseURL: string | URL, options?: URLPatternOptions): URLPattern;
8923
+ new(input?: URLPatternInput, options?: URLPatternOptions): URLPattern;
8924
+ };
8925
+
8818
8926
  /**
8819
8927
  * The **`URLSearchParams`** interface defines utility methods to work with the query string of a URL.
8820
8928
  *
@@ -13039,6 +13147,7 @@ type RequestInfo = Request | string;
13039
13147
  type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame;
13040
13148
  type TimerHandler = string | Function;
13041
13149
  type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer;
13150
+ type URLPatternInput = string | URLPatternInit;
13042
13151
  type Uint32List = Uint32Array<ArrayBufferLike> | GLuint[];
13043
13152
  type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
13044
13153
  type AlphaOption = "discard" | "keep";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/webworker",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "Types for the global scope of Web Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -855,6 +855,39 @@ interface Transformer<I = any, O = any> {
855
855
  writableType?: undefined;
856
856
  }
857
857
 
858
+ interface URLPatternComponentResult {
859
+ groups?: Record<string, string | undefined>;
860
+ input?: string;
861
+ }
862
+
863
+ interface URLPatternInit {
864
+ baseURL?: string;
865
+ hash?: string;
866
+ hostname?: string;
867
+ password?: string;
868
+ pathname?: string;
869
+ port?: string;
870
+ protocol?: string;
871
+ search?: string;
872
+ username?: string;
873
+ }
874
+
875
+ interface URLPatternOptions {
876
+ ignoreCase?: boolean;
877
+ }
878
+
879
+ interface URLPatternResult {
880
+ hash?: URLPatternComponentResult;
881
+ hostname?: URLPatternComponentResult;
882
+ inputs?: URLPatternInput[];
883
+ password?: URLPatternComponentResult;
884
+ pathname?: URLPatternComponentResult;
885
+ port?: URLPatternComponentResult;
886
+ protocol?: URLPatternComponentResult;
887
+ search?: URLPatternComponentResult;
888
+ username?: URLPatternComponentResult;
889
+ }
890
+
858
891
  interface UnderlyingByteSource {
859
892
  autoAllocateChunkSize?: number;
860
893
  cancel?: UnderlyingSourceCancelCallback;
@@ -8815,6 +8848,81 @@ declare var URL: {
8815
8848
  revokeObjectURL(url: string): void;
8816
8849
  };
8817
8850
 
8851
+ /**
8852
+ * The **`URLPattern`** interface of the URL Pattern API matches URLs or parts of URLs against a pattern.
8853
+ *
8854
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern)
8855
+ */
8856
+ interface URLPattern {
8857
+ readonly hasRegExpGroups: boolean;
8858
+ /**
8859
+ * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL.
8860
+ *
8861
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hash)
8862
+ */
8863
+ readonly hash: string;
8864
+ /**
8865
+ * The **`hostname`** read-only property of the URLPattern interface is a string containing the pattern used to match the hostname part of a URL.
8866
+ *
8867
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hostname)
8868
+ */
8869
+ readonly hostname: string;
8870
+ /**
8871
+ * The **`password`** read-only property of the URLPattern interface is a string containing the pattern used to match the password part of a URL.
8872
+ *
8873
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/password)
8874
+ */
8875
+ readonly password: string;
8876
+ /**
8877
+ * The **`pathname`** read-only property of the URLPattern interface is a string containing the pattern used to match the pathname part of a URL.
8878
+ *
8879
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/pathname)
8880
+ */
8881
+ readonly pathname: string;
8882
+ /**
8883
+ * The **`port`** read-only property of the URLPattern interface is a string containing the pattern used to match the port part of a URL.
8884
+ *
8885
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/port)
8886
+ */
8887
+ readonly port: string;
8888
+ /**
8889
+ * The **`protocol`** read-only property of the URLPattern interface is a string containing the pattern used to match the protocol part of a URL.
8890
+ *
8891
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/protocol)
8892
+ */
8893
+ readonly protocol: string;
8894
+ /**
8895
+ * The **`search`** read-only property of the URLPattern interface is a string containing the pattern used to match the search part of a URL.
8896
+ *
8897
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/search)
8898
+ */
8899
+ readonly search: string;
8900
+ /**
8901
+ * The **`username`** read-only property of the URLPattern interface is a string containing the pattern used to match the username part of a URL.
8902
+ *
8903
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/username)
8904
+ */
8905
+ readonly username: string;
8906
+ /**
8907
+ * 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.
8908
+ *
8909
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/exec)
8910
+ */
8911
+ exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
8912
+ /**
8913
+ * 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.
8914
+ *
8915
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/test)
8916
+ */
8917
+ test(input?: URLPatternInput, baseURL?: string | URL): boolean;
8918
+ }
8919
+
8920
+ declare var URLPattern: {
8921
+ prototype: URLPattern;
8922
+ new(input: URLPatternInput, baseURL: string | URL, options?: URLPatternOptions): URLPattern;
8923
+ new(input?: URLPatternInput, options?: URLPatternOptions): URLPattern;
8924
+ };
8925
+
8818
8926
  /**
8819
8927
  * The **`URLSearchParams`** interface defines utility methods to work with the query string of a URL.
8820
8928
  *
@@ -13039,6 +13147,7 @@ type RequestInfo = Request | string;
13039
13147
  type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame;
13040
13148
  type TimerHandler = string | Function;
13041
13149
  type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer;
13150
+ type URLPatternInput = string | URLPatternInit;
13042
13151
  type Uint32List = Uint32Array | GLuint[];
13043
13152
  type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
13044
13153
  type AlphaOption = "discard" | "keep";
package/ts5.6/index.d.ts CHANGED
@@ -855,6 +855,39 @@ interface Transformer<I = any, O = any> {
855
855
  writableType?: undefined;
856
856
  }
857
857
 
858
+ interface URLPatternComponentResult {
859
+ groups?: Record<string, string | undefined>;
860
+ input?: string;
861
+ }
862
+
863
+ interface URLPatternInit {
864
+ baseURL?: string;
865
+ hash?: string;
866
+ hostname?: string;
867
+ password?: string;
868
+ pathname?: string;
869
+ port?: string;
870
+ protocol?: string;
871
+ search?: string;
872
+ username?: string;
873
+ }
874
+
875
+ interface URLPatternOptions {
876
+ ignoreCase?: boolean;
877
+ }
878
+
879
+ interface URLPatternResult {
880
+ hash?: URLPatternComponentResult;
881
+ hostname?: URLPatternComponentResult;
882
+ inputs?: URLPatternInput[];
883
+ password?: URLPatternComponentResult;
884
+ pathname?: URLPatternComponentResult;
885
+ port?: URLPatternComponentResult;
886
+ protocol?: URLPatternComponentResult;
887
+ search?: URLPatternComponentResult;
888
+ username?: URLPatternComponentResult;
889
+ }
890
+
858
891
  interface UnderlyingByteSource {
859
892
  autoAllocateChunkSize?: number;
860
893
  cancel?: UnderlyingSourceCancelCallback;
@@ -8815,6 +8848,81 @@ declare var URL: {
8815
8848
  revokeObjectURL(url: string): void;
8816
8849
  };
8817
8850
 
8851
+ /**
8852
+ * The **`URLPattern`** interface of the URL Pattern API matches URLs or parts of URLs against a pattern.
8853
+ *
8854
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern)
8855
+ */
8856
+ interface URLPattern {
8857
+ readonly hasRegExpGroups: boolean;
8858
+ /**
8859
+ * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL.
8860
+ *
8861
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hash)
8862
+ */
8863
+ readonly hash: string;
8864
+ /**
8865
+ * The **`hostname`** read-only property of the URLPattern interface is a string containing the pattern used to match the hostname part of a URL.
8866
+ *
8867
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hostname)
8868
+ */
8869
+ readonly hostname: string;
8870
+ /**
8871
+ * The **`password`** read-only property of the URLPattern interface is a string containing the pattern used to match the password part of a URL.
8872
+ *
8873
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/password)
8874
+ */
8875
+ readonly password: string;
8876
+ /**
8877
+ * The **`pathname`** read-only property of the URLPattern interface is a string containing the pattern used to match the pathname part of a URL.
8878
+ *
8879
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/pathname)
8880
+ */
8881
+ readonly pathname: string;
8882
+ /**
8883
+ * The **`port`** read-only property of the URLPattern interface is a string containing the pattern used to match the port part of a URL.
8884
+ *
8885
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/port)
8886
+ */
8887
+ readonly port: string;
8888
+ /**
8889
+ * The **`protocol`** read-only property of the URLPattern interface is a string containing the pattern used to match the protocol part of a URL.
8890
+ *
8891
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/protocol)
8892
+ */
8893
+ readonly protocol: string;
8894
+ /**
8895
+ * The **`search`** read-only property of the URLPattern interface is a string containing the pattern used to match the search part of a URL.
8896
+ *
8897
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/search)
8898
+ */
8899
+ readonly search: string;
8900
+ /**
8901
+ * The **`username`** read-only property of the URLPattern interface is a string containing the pattern used to match the username part of a URL.
8902
+ *
8903
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/username)
8904
+ */
8905
+ readonly username: string;
8906
+ /**
8907
+ * 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.
8908
+ *
8909
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/exec)
8910
+ */
8911
+ exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
8912
+ /**
8913
+ * 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.
8914
+ *
8915
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/test)
8916
+ */
8917
+ test(input?: URLPatternInput, baseURL?: string | URL): boolean;
8918
+ }
8919
+
8920
+ declare var URLPattern: {
8921
+ prototype: URLPattern;
8922
+ new(input: URLPatternInput, baseURL: string | URL, options?: URLPatternOptions): URLPattern;
8923
+ new(input?: URLPatternInput, options?: URLPatternOptions): URLPattern;
8924
+ };
8925
+
8818
8926
  /**
8819
8927
  * The **`URLSearchParams`** interface defines utility methods to work with the query string of a URL.
8820
8928
  *
@@ -13039,6 +13147,7 @@ type RequestInfo = Request | string;
13039
13147
  type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame;
13040
13148
  type TimerHandler = string | Function;
13041
13149
  type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer;
13150
+ type URLPatternInput = string | URLPatternInit;
13042
13151
  type Uint32List = Uint32Array | GLuint[];
13043
13152
  type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
13044
13153
  type AlphaOption = "discard" | "keep";