@types/web 0.0.271 → 0.0.273
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/asynciterable.d.ts +2 -23
- package/index.d.ts +608 -22
- package/iterable.d.ts +2 -553
- package/package.json +6 -1
- package/ts5.5/index.d.ts +25 -22
- package/ts5.6/index.d.ts +25 -22
- package/ts5.9/asynciterable.d.ts +23 -0
- package/ts5.9/index.d.ts +40175 -0
- package/ts5.9/iterable.d.ts +553 -0
package/ts5.5/index.d.ts
CHANGED
|
@@ -2366,8 +2366,8 @@ interface ULongRange {
|
|
|
2366
2366
|
}
|
|
2367
2367
|
|
|
2368
2368
|
interface URLPatternComponentResult {
|
|
2369
|
-
groups
|
|
2370
|
-
input
|
|
2369
|
+
groups: Record<string, string | undefined>;
|
|
2370
|
+
input: string;
|
|
2371
2371
|
}
|
|
2372
2372
|
|
|
2373
2373
|
interface URLPatternInit {
|
|
@@ -2387,15 +2387,15 @@ interface URLPatternOptions {
|
|
|
2387
2387
|
}
|
|
2388
2388
|
|
|
2389
2389
|
interface URLPatternResult {
|
|
2390
|
-
hash
|
|
2391
|
-
hostname
|
|
2392
|
-
inputs
|
|
2393
|
-
password
|
|
2394
|
-
pathname
|
|
2395
|
-
port
|
|
2396
|
-
protocol
|
|
2397
|
-
search
|
|
2398
|
-
username
|
|
2390
|
+
hash: URLPatternComponentResult;
|
|
2391
|
+
hostname: URLPatternComponentResult;
|
|
2392
|
+
inputs: URLPatternInput[];
|
|
2393
|
+
password: URLPatternComponentResult;
|
|
2394
|
+
pathname: URLPatternComponentResult;
|
|
2395
|
+
port: URLPatternComponentResult;
|
|
2396
|
+
protocol: URLPatternComponentResult;
|
|
2397
|
+
search: URLPatternComponentResult;
|
|
2398
|
+
username: URLPatternComponentResult;
|
|
2399
2399
|
}
|
|
2400
2400
|
|
|
2401
2401
|
interface UnderlyingByteSource {
|
|
@@ -4824,7 +4824,7 @@ interface CSSFontFaceRule extends CSSRule {
|
|
|
4824
4824
|
*
|
|
4825
4825
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style)
|
|
4826
4826
|
*/
|
|
4827
|
-
readonly style:
|
|
4827
|
+
readonly style: CSSStyleDeclaration;
|
|
4828
4828
|
}
|
|
4829
4829
|
|
|
4830
4830
|
declare var CSSFontFaceRule: {
|
|
@@ -4992,7 +4992,7 @@ interface CSSKeyframeRule extends CSSRule {
|
|
|
4992
4992
|
*
|
|
4993
4993
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style)
|
|
4994
4994
|
*/
|
|
4995
|
-
readonly style:
|
|
4995
|
+
readonly style: CSSStyleDeclaration;
|
|
4996
4996
|
}
|
|
4997
4997
|
|
|
4998
4998
|
declare var CSSKeyframeRule: {
|
|
@@ -5325,7 +5325,7 @@ interface CSSNestedDeclarations extends CSSRule {
|
|
|
5325
5325
|
*
|
|
5326
5326
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations/style)
|
|
5327
5327
|
*/
|
|
5328
|
-
readonly style:
|
|
5328
|
+
readonly style: CSSStyleDeclaration;
|
|
5329
5329
|
}
|
|
5330
5330
|
|
|
5331
5331
|
declare var CSSNestedDeclarations: {
|
|
@@ -5438,7 +5438,7 @@ declare var CSSNumericValue: {
|
|
|
5438
5438
|
*
|
|
5439
5439
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors)
|
|
5440
5440
|
*/
|
|
5441
|
-
interface CSSPageDescriptors extends
|
|
5441
|
+
interface CSSPageDescriptors extends CSSStyleDeclarationBase {
|
|
5442
5442
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors#margin) */
|
|
5443
5443
|
margin: string;
|
|
5444
5444
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors#margin-bottom) */
|
|
@@ -5515,7 +5515,7 @@ declare var CSSPerspective: {
|
|
|
5515
5515
|
*
|
|
5516
5516
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors)
|
|
5517
5517
|
*/
|
|
5518
|
-
interface CSSPositionTryDescriptors extends
|
|
5518
|
+
interface CSSPositionTryDescriptors extends CSSStyleDeclarationBase {
|
|
5519
5519
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors#instance_properties) */
|
|
5520
5520
|
"align-self": string;
|
|
5521
5521
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors#instance_properties) */
|
|
@@ -5988,7 +5988,7 @@ declare var CSSStartingStyleRule: {
|
|
|
5988
5988
|
*
|
|
5989
5989
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration)
|
|
5990
5990
|
*/
|
|
5991
|
-
interface
|
|
5991
|
+
interface CSSStyleDeclarationBase {
|
|
5992
5992
|
/**
|
|
5993
5993
|
* The **`cssText`** property of the CSSStyleDeclaration interface returns or sets the text of the element's **inline** style declaration only.
|
|
5994
5994
|
*
|
|
@@ -6040,12 +6040,15 @@ interface CSSStyleDeclaration {
|
|
|
6040
6040
|
[index: number]: string;
|
|
6041
6041
|
}
|
|
6042
6042
|
|
|
6043
|
+
interface CSSStyleDeclaration extends CSSStyleProperties {
|
|
6044
|
+
}
|
|
6045
|
+
|
|
6043
6046
|
declare var CSSStyleDeclaration: {
|
|
6044
6047
|
prototype: CSSStyleDeclaration;
|
|
6045
6048
|
new(): CSSStyleDeclaration;
|
|
6046
6049
|
};
|
|
6047
6050
|
|
|
6048
|
-
interface CSSStyleProperties extends
|
|
6051
|
+
interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
6049
6052
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */
|
|
6050
6053
|
accentColor: string;
|
|
6051
6054
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */
|
|
@@ -7410,7 +7413,7 @@ interface CSSStyleRule extends CSSGroupingRule {
|
|
|
7410
7413
|
*
|
|
7411
7414
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style)
|
|
7412
7415
|
*/
|
|
7413
|
-
readonly style:
|
|
7416
|
+
readonly style: CSSStyleDeclaration;
|
|
7414
7417
|
/**
|
|
7415
7418
|
* The **`styleMap`** read-only property of the CSSStyleRule interface returns a StylePropertyMap object which provides access to the rule's property-value pairs.
|
|
7416
7419
|
*
|
|
@@ -11451,7 +11454,7 @@ interface ElementCSSInlineStyle {
|
|
|
11451
11454
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) */
|
|
11452
11455
|
readonly attributeStyleMap: StylePropertyMap;
|
|
11453
11456
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */
|
|
11454
|
-
readonly style:
|
|
11457
|
+
readonly style: CSSStyleDeclaration;
|
|
11455
11458
|
}
|
|
11456
11459
|
|
|
11457
11460
|
interface ElementContentEditable {
|
|
@@ -37335,7 +37338,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
|
|
|
37335
37338
|
*
|
|
37336
37339
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
|
|
37337
37340
|
*/
|
|
37338
|
-
getComputedStyle(elt: Element, pseudoElt?: string | null):
|
|
37341
|
+
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
|
|
37339
37342
|
/**
|
|
37340
37343
|
* The **`getSelection()`** method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.
|
|
37341
37344
|
*
|
|
@@ -39437,7 +39440,7 @@ declare function focus(): void;
|
|
|
39437
39440
|
*
|
|
39438
39441
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
|
|
39439
39442
|
*/
|
|
39440
|
-
declare function getComputedStyle(elt: Element, pseudoElt?: string | null):
|
|
39443
|
+
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
|
|
39441
39444
|
/**
|
|
39442
39445
|
* The **`getSelection()`** method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.
|
|
39443
39446
|
*
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -2366,8 +2366,8 @@ interface ULongRange {
|
|
|
2366
2366
|
}
|
|
2367
2367
|
|
|
2368
2368
|
interface URLPatternComponentResult {
|
|
2369
|
-
groups
|
|
2370
|
-
input
|
|
2369
|
+
groups: Record<string, string | undefined>;
|
|
2370
|
+
input: string;
|
|
2371
2371
|
}
|
|
2372
2372
|
|
|
2373
2373
|
interface URLPatternInit {
|
|
@@ -2387,15 +2387,15 @@ interface URLPatternOptions {
|
|
|
2387
2387
|
}
|
|
2388
2388
|
|
|
2389
2389
|
interface URLPatternResult {
|
|
2390
|
-
hash
|
|
2391
|
-
hostname
|
|
2392
|
-
inputs
|
|
2393
|
-
password
|
|
2394
|
-
pathname
|
|
2395
|
-
port
|
|
2396
|
-
protocol
|
|
2397
|
-
search
|
|
2398
|
-
username
|
|
2390
|
+
hash: URLPatternComponentResult;
|
|
2391
|
+
hostname: URLPatternComponentResult;
|
|
2392
|
+
inputs: URLPatternInput[];
|
|
2393
|
+
password: URLPatternComponentResult;
|
|
2394
|
+
pathname: URLPatternComponentResult;
|
|
2395
|
+
port: URLPatternComponentResult;
|
|
2396
|
+
protocol: URLPatternComponentResult;
|
|
2397
|
+
search: URLPatternComponentResult;
|
|
2398
|
+
username: URLPatternComponentResult;
|
|
2399
2399
|
}
|
|
2400
2400
|
|
|
2401
2401
|
interface UnderlyingByteSource {
|
|
@@ -4824,7 +4824,7 @@ interface CSSFontFaceRule extends CSSRule {
|
|
|
4824
4824
|
*
|
|
4825
4825
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style)
|
|
4826
4826
|
*/
|
|
4827
|
-
get style():
|
|
4827
|
+
get style(): CSSStyleDeclaration;
|
|
4828
4828
|
set style(cssText: string);
|
|
4829
4829
|
}
|
|
4830
4830
|
|
|
@@ -4994,7 +4994,7 @@ interface CSSKeyframeRule extends CSSRule {
|
|
|
4994
4994
|
*
|
|
4995
4995
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style)
|
|
4996
4996
|
*/
|
|
4997
|
-
get style():
|
|
4997
|
+
get style(): CSSStyleDeclaration;
|
|
4998
4998
|
set style(cssText: string);
|
|
4999
4999
|
}
|
|
5000
5000
|
|
|
@@ -5329,7 +5329,7 @@ interface CSSNestedDeclarations extends CSSRule {
|
|
|
5329
5329
|
*
|
|
5330
5330
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations/style)
|
|
5331
5331
|
*/
|
|
5332
|
-
get style():
|
|
5332
|
+
get style(): CSSStyleDeclaration;
|
|
5333
5333
|
set style(cssText: string);
|
|
5334
5334
|
}
|
|
5335
5335
|
|
|
@@ -5443,7 +5443,7 @@ declare var CSSNumericValue: {
|
|
|
5443
5443
|
*
|
|
5444
5444
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors)
|
|
5445
5445
|
*/
|
|
5446
|
-
interface CSSPageDescriptors extends
|
|
5446
|
+
interface CSSPageDescriptors extends CSSStyleDeclarationBase {
|
|
5447
5447
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors#margin) */
|
|
5448
5448
|
margin: string;
|
|
5449
5449
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors#margin-bottom) */
|
|
@@ -5521,7 +5521,7 @@ declare var CSSPerspective: {
|
|
|
5521
5521
|
*
|
|
5522
5522
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors)
|
|
5523
5523
|
*/
|
|
5524
|
-
interface CSSPositionTryDescriptors extends
|
|
5524
|
+
interface CSSPositionTryDescriptors extends CSSStyleDeclarationBase {
|
|
5525
5525
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors#instance_properties) */
|
|
5526
5526
|
"align-self": string;
|
|
5527
5527
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors#instance_properties) */
|
|
@@ -5995,7 +5995,7 @@ declare var CSSStartingStyleRule: {
|
|
|
5995
5995
|
*
|
|
5996
5996
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration)
|
|
5997
5997
|
*/
|
|
5998
|
-
interface
|
|
5998
|
+
interface CSSStyleDeclarationBase {
|
|
5999
5999
|
/**
|
|
6000
6000
|
* The **`cssText`** property of the CSSStyleDeclaration interface returns or sets the text of the element's **inline** style declaration only.
|
|
6001
6001
|
*
|
|
@@ -6047,12 +6047,15 @@ interface CSSStyleDeclaration {
|
|
|
6047
6047
|
[index: number]: string;
|
|
6048
6048
|
}
|
|
6049
6049
|
|
|
6050
|
+
interface CSSStyleDeclaration extends CSSStyleProperties {
|
|
6051
|
+
}
|
|
6052
|
+
|
|
6050
6053
|
declare var CSSStyleDeclaration: {
|
|
6051
6054
|
prototype: CSSStyleDeclaration;
|
|
6052
6055
|
new(): CSSStyleDeclaration;
|
|
6053
6056
|
};
|
|
6054
6057
|
|
|
6055
|
-
interface CSSStyleProperties extends
|
|
6058
|
+
interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
6056
6059
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */
|
|
6057
6060
|
accentColor: string;
|
|
6058
6061
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */
|
|
@@ -7417,7 +7420,7 @@ interface CSSStyleRule extends CSSGroupingRule {
|
|
|
7417
7420
|
*
|
|
7418
7421
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style)
|
|
7419
7422
|
*/
|
|
7420
|
-
get style():
|
|
7423
|
+
get style(): CSSStyleDeclaration;
|
|
7421
7424
|
set style(cssText: string);
|
|
7422
7425
|
/**
|
|
7423
7426
|
* The **`styleMap`** read-only property of the CSSStyleRule interface returns a StylePropertyMap object which provides access to the rule's property-value pairs.
|
|
@@ -11461,7 +11464,7 @@ interface ElementCSSInlineStyle {
|
|
|
11461
11464
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) */
|
|
11462
11465
|
readonly attributeStyleMap: StylePropertyMap;
|
|
11463
11466
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */
|
|
11464
|
-
get style():
|
|
11467
|
+
get style(): CSSStyleDeclaration;
|
|
11465
11468
|
set style(cssText: string);
|
|
11466
11469
|
}
|
|
11467
11470
|
|
|
@@ -37358,7 +37361,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
|
|
|
37358
37361
|
*
|
|
37359
37362
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
|
|
37360
37363
|
*/
|
|
37361
|
-
getComputedStyle(elt: Element, pseudoElt?: string | null):
|
|
37364
|
+
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
|
|
37362
37365
|
/**
|
|
37363
37366
|
* The **`getSelection()`** method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.
|
|
37364
37367
|
*
|
|
@@ -39460,7 +39463,7 @@ declare function focus(): void;
|
|
|
39460
39463
|
*
|
|
39461
39464
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
|
|
39462
39465
|
*/
|
|
39463
|
-
declare function getComputedStyle(elt: Element, pseudoElt?: string | null):
|
|
39466
|
+
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
|
|
39464
39467
|
/**
|
|
39465
39468
|
* The **`getSelection()`** method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.
|
|
39466
39469
|
*
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/////////////////////////////
|
|
2
|
+
/// Window Async Iterable APIs
|
|
3
|
+
/////////////////////////////
|
|
4
|
+
|
|
5
|
+
interface FileSystemDirectoryHandleAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
6
|
+
[Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<T>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface FileSystemDirectoryHandle {
|
|
10
|
+
[Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
|
|
11
|
+
entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
|
|
12
|
+
keys(): FileSystemDirectoryHandleAsyncIterator<string>;
|
|
13
|
+
values(): FileSystemDirectoryHandleAsyncIterator<FileSystemHandle>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface ReadableStreamAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
17
|
+
[Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface ReadableStream<R = any> {
|
|
21
|
+
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
|
|
22
|
+
values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
|
|
23
|
+
}
|