@types/serviceworker 0.0.139 → 0.0.141
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 +1 -1
- package/index.d.ts +109 -6
- package/package.json +1 -1
- package/ts5.5/index.d.ts +109 -6
- package/ts5.6/index.d.ts +109 -6
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.
|
|
31
|
+
You can read what changed in version 0.0.141 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.141.
|
package/index.d.ts
CHANGED
|
@@ -711,6 +711,39 @@ interface Transformer<I = any, O = any> {
|
|
|
711
711
|
writableType?: undefined;
|
|
712
712
|
}
|
|
713
713
|
|
|
714
|
+
interface URLPatternComponentResult {
|
|
715
|
+
groups?: Record<string, string | undefined>;
|
|
716
|
+
input?: string;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
interface URLPatternInit {
|
|
720
|
+
baseURL?: string;
|
|
721
|
+
hash?: string;
|
|
722
|
+
hostname?: string;
|
|
723
|
+
password?: string;
|
|
724
|
+
pathname?: string;
|
|
725
|
+
port?: string;
|
|
726
|
+
protocol?: string;
|
|
727
|
+
search?: string;
|
|
728
|
+
username?: string;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
interface URLPatternOptions {
|
|
732
|
+
ignoreCase?: boolean;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
interface URLPatternResult {
|
|
736
|
+
hash?: URLPatternComponentResult;
|
|
737
|
+
hostname?: URLPatternComponentResult;
|
|
738
|
+
inputs?: URLPatternInput[];
|
|
739
|
+
password?: URLPatternComponentResult;
|
|
740
|
+
pathname?: URLPatternComponentResult;
|
|
741
|
+
port?: URLPatternComponentResult;
|
|
742
|
+
protocol?: URLPatternComponentResult;
|
|
743
|
+
search?: URLPatternComponentResult;
|
|
744
|
+
username?: URLPatternComponentResult;
|
|
745
|
+
}
|
|
746
|
+
|
|
714
747
|
interface UnderlyingByteSource {
|
|
715
748
|
autoAllocateChunkSize?: number;
|
|
716
749
|
cancel?: UnderlyingSourceCancelCallback;
|
|
@@ -5222,12 +5255,6 @@ interface NotificationEventMap {
|
|
|
5222
5255
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
|
|
5223
5256
|
*/
|
|
5224
5257
|
interface Notification extends EventTarget {
|
|
5225
|
-
/**
|
|
5226
|
-
* 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.
|
|
5227
|
-
*
|
|
5228
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge)
|
|
5229
|
-
*/
|
|
5230
|
-
readonly badge: string;
|
|
5231
5258
|
/**
|
|
5232
5259
|
* The **`body`** read-only property of the specified in the `body` option of the A string.
|
|
5233
5260
|
*
|
|
@@ -7672,6 +7699,81 @@ declare var URL: {
|
|
|
7672
7699
|
parse(url: string | URL, base?: string | URL): URL | null;
|
|
7673
7700
|
};
|
|
7674
7701
|
|
|
7702
|
+
/**
|
|
7703
|
+
* The **`URLPattern`** interface of the URL Pattern API matches URLs or parts of URLs against a pattern.
|
|
7704
|
+
*
|
|
7705
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern)
|
|
7706
|
+
*/
|
|
7707
|
+
interface URLPattern {
|
|
7708
|
+
readonly hasRegExpGroups: boolean;
|
|
7709
|
+
/**
|
|
7710
|
+
* The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL.
|
|
7711
|
+
*
|
|
7712
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hash)
|
|
7713
|
+
*/
|
|
7714
|
+
readonly hash: string;
|
|
7715
|
+
/**
|
|
7716
|
+
* The **`hostname`** read-only property of the URLPattern interface is a string containing the pattern used to match the hostname part of a URL.
|
|
7717
|
+
*
|
|
7718
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hostname)
|
|
7719
|
+
*/
|
|
7720
|
+
readonly hostname: string;
|
|
7721
|
+
/**
|
|
7722
|
+
* The **`password`** read-only property of the URLPattern interface is a string containing the pattern used to match the password part of a URL.
|
|
7723
|
+
*
|
|
7724
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/password)
|
|
7725
|
+
*/
|
|
7726
|
+
readonly password: string;
|
|
7727
|
+
/**
|
|
7728
|
+
* The **`pathname`** read-only property of the URLPattern interface is a string containing the pattern used to match the pathname part of a URL.
|
|
7729
|
+
*
|
|
7730
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/pathname)
|
|
7731
|
+
*/
|
|
7732
|
+
readonly pathname: string;
|
|
7733
|
+
/**
|
|
7734
|
+
* The **`port`** read-only property of the URLPattern interface is a string containing the pattern used to match the port part of a URL.
|
|
7735
|
+
*
|
|
7736
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/port)
|
|
7737
|
+
*/
|
|
7738
|
+
readonly port: string;
|
|
7739
|
+
/**
|
|
7740
|
+
* The **`protocol`** read-only property of the URLPattern interface is a string containing the pattern used to match the protocol part of a URL.
|
|
7741
|
+
*
|
|
7742
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/protocol)
|
|
7743
|
+
*/
|
|
7744
|
+
readonly protocol: string;
|
|
7745
|
+
/**
|
|
7746
|
+
* The **`search`** read-only property of the URLPattern interface is a string containing the pattern used to match the search part of a URL.
|
|
7747
|
+
*
|
|
7748
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/search)
|
|
7749
|
+
*/
|
|
7750
|
+
readonly search: string;
|
|
7751
|
+
/**
|
|
7752
|
+
* The **`username`** read-only property of the URLPattern interface is a string containing the pattern used to match the username part of a URL.
|
|
7753
|
+
*
|
|
7754
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/username)
|
|
7755
|
+
*/
|
|
7756
|
+
readonly username: string;
|
|
7757
|
+
/**
|
|
7758
|
+
* 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.
|
|
7759
|
+
*
|
|
7760
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/exec)
|
|
7761
|
+
*/
|
|
7762
|
+
exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
|
|
7763
|
+
/**
|
|
7764
|
+
* 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.
|
|
7765
|
+
*
|
|
7766
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/test)
|
|
7767
|
+
*/
|
|
7768
|
+
test(input?: URLPatternInput, baseURL?: string | URL): boolean;
|
|
7769
|
+
}
|
|
7770
|
+
|
|
7771
|
+
declare var URLPattern: {
|
|
7772
|
+
prototype: URLPattern;
|
|
7773
|
+
new(input: URLPatternInput, baseURL: string | URL, options?: URLPatternOptions): URLPattern;
|
|
7774
|
+
new(input?: URLPatternInput, options?: URLPatternOptions): URLPattern;
|
|
7775
|
+
};
|
|
7776
|
+
|
|
7675
7777
|
/**
|
|
7676
7778
|
* The **`URLSearchParams`** interface defines utility methods to work with the query string of a URL.
|
|
7677
7779
|
*
|
|
@@ -11387,6 +11489,7 @@ type RequestInfo = Request | string;
|
|
|
11387
11489
|
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
11388
11490
|
type TimerHandler = string | Function;
|
|
11389
11491
|
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
|
|
11492
|
+
type URLPatternInput = string | URLPatternInit;
|
|
11390
11493
|
type Uint32List = Uint32Array<ArrayBufferLike> | GLuint[];
|
|
11391
11494
|
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
|
|
11392
11495
|
type BinaryType = "arraybuffer" | "blob";
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -711,6 +711,39 @@ interface Transformer<I = any, O = any> {
|
|
|
711
711
|
writableType?: undefined;
|
|
712
712
|
}
|
|
713
713
|
|
|
714
|
+
interface URLPatternComponentResult {
|
|
715
|
+
groups?: Record<string, string | undefined>;
|
|
716
|
+
input?: string;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
interface URLPatternInit {
|
|
720
|
+
baseURL?: string;
|
|
721
|
+
hash?: string;
|
|
722
|
+
hostname?: string;
|
|
723
|
+
password?: string;
|
|
724
|
+
pathname?: string;
|
|
725
|
+
port?: string;
|
|
726
|
+
protocol?: string;
|
|
727
|
+
search?: string;
|
|
728
|
+
username?: string;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
interface URLPatternOptions {
|
|
732
|
+
ignoreCase?: boolean;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
interface URLPatternResult {
|
|
736
|
+
hash?: URLPatternComponentResult;
|
|
737
|
+
hostname?: URLPatternComponentResult;
|
|
738
|
+
inputs?: URLPatternInput[];
|
|
739
|
+
password?: URLPatternComponentResult;
|
|
740
|
+
pathname?: URLPatternComponentResult;
|
|
741
|
+
port?: URLPatternComponentResult;
|
|
742
|
+
protocol?: URLPatternComponentResult;
|
|
743
|
+
search?: URLPatternComponentResult;
|
|
744
|
+
username?: URLPatternComponentResult;
|
|
745
|
+
}
|
|
746
|
+
|
|
714
747
|
interface UnderlyingByteSource {
|
|
715
748
|
autoAllocateChunkSize?: number;
|
|
716
749
|
cancel?: UnderlyingSourceCancelCallback;
|
|
@@ -5222,12 +5255,6 @@ interface NotificationEventMap {
|
|
|
5222
5255
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
|
|
5223
5256
|
*/
|
|
5224
5257
|
interface Notification extends EventTarget {
|
|
5225
|
-
/**
|
|
5226
|
-
* 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.
|
|
5227
|
-
*
|
|
5228
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge)
|
|
5229
|
-
*/
|
|
5230
|
-
readonly badge: string;
|
|
5231
5258
|
/**
|
|
5232
5259
|
* The **`body`** read-only property of the specified in the `body` option of the A string.
|
|
5233
5260
|
*
|
|
@@ -7672,6 +7699,81 @@ declare var URL: {
|
|
|
7672
7699
|
parse(url: string | URL, base?: string | URL): URL | null;
|
|
7673
7700
|
};
|
|
7674
7701
|
|
|
7702
|
+
/**
|
|
7703
|
+
* The **`URLPattern`** interface of the URL Pattern API matches URLs or parts of URLs against a pattern.
|
|
7704
|
+
*
|
|
7705
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern)
|
|
7706
|
+
*/
|
|
7707
|
+
interface URLPattern {
|
|
7708
|
+
readonly hasRegExpGroups: boolean;
|
|
7709
|
+
/**
|
|
7710
|
+
* The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL.
|
|
7711
|
+
*
|
|
7712
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hash)
|
|
7713
|
+
*/
|
|
7714
|
+
readonly hash: string;
|
|
7715
|
+
/**
|
|
7716
|
+
* The **`hostname`** read-only property of the URLPattern interface is a string containing the pattern used to match the hostname part of a URL.
|
|
7717
|
+
*
|
|
7718
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hostname)
|
|
7719
|
+
*/
|
|
7720
|
+
readonly hostname: string;
|
|
7721
|
+
/**
|
|
7722
|
+
* The **`password`** read-only property of the URLPattern interface is a string containing the pattern used to match the password part of a URL.
|
|
7723
|
+
*
|
|
7724
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/password)
|
|
7725
|
+
*/
|
|
7726
|
+
readonly password: string;
|
|
7727
|
+
/**
|
|
7728
|
+
* The **`pathname`** read-only property of the URLPattern interface is a string containing the pattern used to match the pathname part of a URL.
|
|
7729
|
+
*
|
|
7730
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/pathname)
|
|
7731
|
+
*/
|
|
7732
|
+
readonly pathname: string;
|
|
7733
|
+
/**
|
|
7734
|
+
* The **`port`** read-only property of the URLPattern interface is a string containing the pattern used to match the port part of a URL.
|
|
7735
|
+
*
|
|
7736
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/port)
|
|
7737
|
+
*/
|
|
7738
|
+
readonly port: string;
|
|
7739
|
+
/**
|
|
7740
|
+
* The **`protocol`** read-only property of the URLPattern interface is a string containing the pattern used to match the protocol part of a URL.
|
|
7741
|
+
*
|
|
7742
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/protocol)
|
|
7743
|
+
*/
|
|
7744
|
+
readonly protocol: string;
|
|
7745
|
+
/**
|
|
7746
|
+
* The **`search`** read-only property of the URLPattern interface is a string containing the pattern used to match the search part of a URL.
|
|
7747
|
+
*
|
|
7748
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/search)
|
|
7749
|
+
*/
|
|
7750
|
+
readonly search: string;
|
|
7751
|
+
/**
|
|
7752
|
+
* The **`username`** read-only property of the URLPattern interface is a string containing the pattern used to match the username part of a URL.
|
|
7753
|
+
*
|
|
7754
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/username)
|
|
7755
|
+
*/
|
|
7756
|
+
readonly username: string;
|
|
7757
|
+
/**
|
|
7758
|
+
* 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.
|
|
7759
|
+
*
|
|
7760
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/exec)
|
|
7761
|
+
*/
|
|
7762
|
+
exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
|
|
7763
|
+
/**
|
|
7764
|
+
* 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.
|
|
7765
|
+
*
|
|
7766
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/test)
|
|
7767
|
+
*/
|
|
7768
|
+
test(input?: URLPatternInput, baseURL?: string | URL): boolean;
|
|
7769
|
+
}
|
|
7770
|
+
|
|
7771
|
+
declare var URLPattern: {
|
|
7772
|
+
prototype: URLPattern;
|
|
7773
|
+
new(input: URLPatternInput, baseURL: string | URL, options?: URLPatternOptions): URLPattern;
|
|
7774
|
+
new(input?: URLPatternInput, options?: URLPatternOptions): URLPattern;
|
|
7775
|
+
};
|
|
7776
|
+
|
|
7675
7777
|
/**
|
|
7676
7778
|
* The **`URLSearchParams`** interface defines utility methods to work with the query string of a URL.
|
|
7677
7779
|
*
|
|
@@ -11387,6 +11489,7 @@ type RequestInfo = Request | string;
|
|
|
11387
11489
|
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
11388
11490
|
type TimerHandler = string | Function;
|
|
11389
11491
|
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
|
|
11492
|
+
type URLPatternInput = string | URLPatternInit;
|
|
11390
11493
|
type Uint32List = Uint32Array | GLuint[];
|
|
11391
11494
|
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
|
|
11392
11495
|
type BinaryType = "arraybuffer" | "blob";
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -711,6 +711,39 @@ interface Transformer<I = any, O = any> {
|
|
|
711
711
|
writableType?: undefined;
|
|
712
712
|
}
|
|
713
713
|
|
|
714
|
+
interface URLPatternComponentResult {
|
|
715
|
+
groups?: Record<string, string | undefined>;
|
|
716
|
+
input?: string;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
interface URLPatternInit {
|
|
720
|
+
baseURL?: string;
|
|
721
|
+
hash?: string;
|
|
722
|
+
hostname?: string;
|
|
723
|
+
password?: string;
|
|
724
|
+
pathname?: string;
|
|
725
|
+
port?: string;
|
|
726
|
+
protocol?: string;
|
|
727
|
+
search?: string;
|
|
728
|
+
username?: string;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
interface URLPatternOptions {
|
|
732
|
+
ignoreCase?: boolean;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
interface URLPatternResult {
|
|
736
|
+
hash?: URLPatternComponentResult;
|
|
737
|
+
hostname?: URLPatternComponentResult;
|
|
738
|
+
inputs?: URLPatternInput[];
|
|
739
|
+
password?: URLPatternComponentResult;
|
|
740
|
+
pathname?: URLPatternComponentResult;
|
|
741
|
+
port?: URLPatternComponentResult;
|
|
742
|
+
protocol?: URLPatternComponentResult;
|
|
743
|
+
search?: URLPatternComponentResult;
|
|
744
|
+
username?: URLPatternComponentResult;
|
|
745
|
+
}
|
|
746
|
+
|
|
714
747
|
interface UnderlyingByteSource {
|
|
715
748
|
autoAllocateChunkSize?: number;
|
|
716
749
|
cancel?: UnderlyingSourceCancelCallback;
|
|
@@ -5222,12 +5255,6 @@ interface NotificationEventMap {
|
|
|
5222
5255
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
|
|
5223
5256
|
*/
|
|
5224
5257
|
interface Notification extends EventTarget {
|
|
5225
|
-
/**
|
|
5226
|
-
* 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.
|
|
5227
|
-
*
|
|
5228
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge)
|
|
5229
|
-
*/
|
|
5230
|
-
readonly badge: string;
|
|
5231
5258
|
/**
|
|
5232
5259
|
* The **`body`** read-only property of the specified in the `body` option of the A string.
|
|
5233
5260
|
*
|
|
@@ -7672,6 +7699,81 @@ declare var URL: {
|
|
|
7672
7699
|
parse(url: string | URL, base?: string | URL): URL | null;
|
|
7673
7700
|
};
|
|
7674
7701
|
|
|
7702
|
+
/**
|
|
7703
|
+
* The **`URLPattern`** interface of the URL Pattern API matches URLs or parts of URLs against a pattern.
|
|
7704
|
+
*
|
|
7705
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern)
|
|
7706
|
+
*/
|
|
7707
|
+
interface URLPattern {
|
|
7708
|
+
readonly hasRegExpGroups: boolean;
|
|
7709
|
+
/**
|
|
7710
|
+
* The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL.
|
|
7711
|
+
*
|
|
7712
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hash)
|
|
7713
|
+
*/
|
|
7714
|
+
readonly hash: string;
|
|
7715
|
+
/**
|
|
7716
|
+
* The **`hostname`** read-only property of the URLPattern interface is a string containing the pattern used to match the hostname part of a URL.
|
|
7717
|
+
*
|
|
7718
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hostname)
|
|
7719
|
+
*/
|
|
7720
|
+
readonly hostname: string;
|
|
7721
|
+
/**
|
|
7722
|
+
* The **`password`** read-only property of the URLPattern interface is a string containing the pattern used to match the password part of a URL.
|
|
7723
|
+
*
|
|
7724
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/password)
|
|
7725
|
+
*/
|
|
7726
|
+
readonly password: string;
|
|
7727
|
+
/**
|
|
7728
|
+
* The **`pathname`** read-only property of the URLPattern interface is a string containing the pattern used to match the pathname part of a URL.
|
|
7729
|
+
*
|
|
7730
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/pathname)
|
|
7731
|
+
*/
|
|
7732
|
+
readonly pathname: string;
|
|
7733
|
+
/**
|
|
7734
|
+
* The **`port`** read-only property of the URLPattern interface is a string containing the pattern used to match the port part of a URL.
|
|
7735
|
+
*
|
|
7736
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/port)
|
|
7737
|
+
*/
|
|
7738
|
+
readonly port: string;
|
|
7739
|
+
/**
|
|
7740
|
+
* The **`protocol`** read-only property of the URLPattern interface is a string containing the pattern used to match the protocol part of a URL.
|
|
7741
|
+
*
|
|
7742
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/protocol)
|
|
7743
|
+
*/
|
|
7744
|
+
readonly protocol: string;
|
|
7745
|
+
/**
|
|
7746
|
+
* The **`search`** read-only property of the URLPattern interface is a string containing the pattern used to match the search part of a URL.
|
|
7747
|
+
*
|
|
7748
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/search)
|
|
7749
|
+
*/
|
|
7750
|
+
readonly search: string;
|
|
7751
|
+
/**
|
|
7752
|
+
* The **`username`** read-only property of the URLPattern interface is a string containing the pattern used to match the username part of a URL.
|
|
7753
|
+
*
|
|
7754
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/username)
|
|
7755
|
+
*/
|
|
7756
|
+
readonly username: string;
|
|
7757
|
+
/**
|
|
7758
|
+
* 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.
|
|
7759
|
+
*
|
|
7760
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/exec)
|
|
7761
|
+
*/
|
|
7762
|
+
exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
|
|
7763
|
+
/**
|
|
7764
|
+
* 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.
|
|
7765
|
+
*
|
|
7766
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/test)
|
|
7767
|
+
*/
|
|
7768
|
+
test(input?: URLPatternInput, baseURL?: string | URL): boolean;
|
|
7769
|
+
}
|
|
7770
|
+
|
|
7771
|
+
declare var URLPattern: {
|
|
7772
|
+
prototype: URLPattern;
|
|
7773
|
+
new(input: URLPatternInput, baseURL: string | URL, options?: URLPatternOptions): URLPattern;
|
|
7774
|
+
new(input?: URLPatternInput, options?: URLPatternOptions): URLPattern;
|
|
7775
|
+
};
|
|
7776
|
+
|
|
7675
7777
|
/**
|
|
7676
7778
|
* The **`URLSearchParams`** interface defines utility methods to work with the query string of a URL.
|
|
7677
7779
|
*
|
|
@@ -11387,6 +11489,7 @@ type RequestInfo = Request | string;
|
|
|
11387
11489
|
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
11388
11490
|
type TimerHandler = string | Function;
|
|
11389
11491
|
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
|
|
11492
|
+
type URLPatternInput = string | URLPatternInit;
|
|
11390
11493
|
type Uint32List = Uint32Array | GLuint[];
|
|
11391
11494
|
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
|
|
11392
11495
|
type BinaryType = "arraybuffer" | "blob";
|