@types/web 0.0.175 → 0.0.177
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 +269 -53
- package/iterable.d.ts +7 -5
- package/package.json +1 -1
- package/ts5.5/index.d.ts +226 -32
- package/ts5.5/iterable.d.ts +7 -5
package/README.md
CHANGED
|
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
|
|
|
47
47
|
|
|
48
48
|
## Deploy Metadata
|
|
49
49
|
|
|
50
|
-
You can read what changed in version 0.0.
|
|
50
|
+
You can read what changed in version 0.0.177 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.177.
|
package/index.d.ts
CHANGED
|
@@ -771,6 +771,26 @@ interface ImageDataSettings {
|
|
|
771
771
|
colorSpace?: PredefinedColorSpace;
|
|
772
772
|
}
|
|
773
773
|
|
|
774
|
+
interface ImageDecodeOptions {
|
|
775
|
+
completeFramesOnly?: boolean;
|
|
776
|
+
frameIndex?: number;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
interface ImageDecodeResult {
|
|
780
|
+
complete: boolean;
|
|
781
|
+
image: VideoFrame;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
interface ImageDecoderInit {
|
|
785
|
+
colorSpaceConversion?: ColorSpaceConversion;
|
|
786
|
+
data: ImageBufferSource;
|
|
787
|
+
desiredHeight?: number;
|
|
788
|
+
desiredWidth?: number;
|
|
789
|
+
preferAnimation?: boolean;
|
|
790
|
+
transfer?: ArrayBuffer[];
|
|
791
|
+
type: string;
|
|
792
|
+
}
|
|
793
|
+
|
|
774
794
|
interface ImageEncodeOptions {
|
|
775
795
|
quality?: number;
|
|
776
796
|
type?: string;
|
|
@@ -1162,6 +1182,15 @@ interface OscillatorOptions extends AudioNodeOptions {
|
|
|
1162
1182
|
type?: OscillatorType;
|
|
1163
1183
|
}
|
|
1164
1184
|
|
|
1185
|
+
interface PageRevealEventInit extends EventInit {
|
|
1186
|
+
viewTransition?: ViewTransition | null;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
interface PageSwapEventInit extends EventInit {
|
|
1190
|
+
activation?: NavigationActivation | null;
|
|
1191
|
+
viewTransition?: ViewTransition | null;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1165
1194
|
interface PageTransitionEventInit extends EventInit {
|
|
1166
1195
|
persisted?: boolean;
|
|
1167
1196
|
}
|
|
@@ -3616,7 +3645,8 @@ declare var CSSCounterStyleRule: {
|
|
|
3616
3645
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule) */
|
|
3617
3646
|
interface CSSFontFaceRule extends CSSRule {
|
|
3618
3647
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style) */
|
|
3619
|
-
|
|
3648
|
+
get style(): CSSStyleDeclaration;
|
|
3649
|
+
set style(cssText: string);
|
|
3620
3650
|
}
|
|
3621
3651
|
|
|
3622
3652
|
declare var CSSFontFaceRule: {
|
|
@@ -3687,7 +3717,8 @@ interface CSSImportRule extends CSSRule {
|
|
|
3687
3717
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/layerName) */
|
|
3688
3718
|
readonly layerName: string | null;
|
|
3689
3719
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */
|
|
3690
|
-
|
|
3720
|
+
get media(): MediaList;
|
|
3721
|
+
set media(mediaText: string);
|
|
3691
3722
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */
|
|
3692
3723
|
readonly styleSheet: CSSStyleSheet | null;
|
|
3693
3724
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/supportsText) */
|
|
@@ -3708,7 +3739,8 @@ interface CSSKeyframeRule extends CSSRule {
|
|
|
3708
3739
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/keyText) */
|
|
3709
3740
|
keyText: string;
|
|
3710
3741
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style) */
|
|
3711
|
-
|
|
3742
|
+
get style(): CSSStyleDeclaration;
|
|
3743
|
+
set style(cssText: string);
|
|
3712
3744
|
}
|
|
3713
3745
|
|
|
3714
3746
|
declare var CSSKeyframeRule: {
|
|
@@ -3881,7 +3913,8 @@ declare var CSSMatrixComponent: {
|
|
|
3881
3913
|
*/
|
|
3882
3914
|
interface CSSMediaRule extends CSSConditionRule {
|
|
3883
3915
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule/media) */
|
|
3884
|
-
|
|
3916
|
+
get media(): MediaList;
|
|
3917
|
+
set media(mediaText: string);
|
|
3885
3918
|
}
|
|
3886
3919
|
|
|
3887
3920
|
declare var CSSMediaRule: {
|
|
@@ -3907,7 +3940,8 @@ declare var CSSNamespaceRule: {
|
|
|
3907
3940
|
};
|
|
3908
3941
|
|
|
3909
3942
|
interface CSSNestedDeclarations extends CSSRule {
|
|
3910
|
-
|
|
3943
|
+
get style(): CSSStyleDeclaration;
|
|
3944
|
+
set style(cssText: string);
|
|
3911
3945
|
}
|
|
3912
3946
|
|
|
3913
3947
|
declare var CSSNestedDeclarations: {
|
|
@@ -3968,7 +4002,8 @@ interface CSSPageRule extends CSSGroupingRule {
|
|
|
3968
4002
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/selectorText) */
|
|
3969
4003
|
selectorText: string;
|
|
3970
4004
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style) */
|
|
3971
|
-
|
|
4005
|
+
get style(): CSSStyleDeclaration;
|
|
4006
|
+
set style(cssText: string);
|
|
3972
4007
|
}
|
|
3973
4008
|
|
|
3974
4009
|
declare var CSSPageRule: {
|
|
@@ -5005,6 +5040,7 @@ interface CSSStyleDeclaration {
|
|
|
5005
5040
|
vectorEffect: string;
|
|
5006
5041
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */
|
|
5007
5042
|
verticalAlign: string;
|
|
5043
|
+
viewTransitionClass: string;
|
|
5008
5044
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */
|
|
5009
5045
|
viewTransitionName: string;
|
|
5010
5046
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */
|
|
@@ -5237,11 +5273,7 @@ interface CSSStyleDeclaration {
|
|
|
5237
5273
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content)
|
|
5238
5274
|
*/
|
|
5239
5275
|
webkitJustifyContent: string;
|
|
5240
|
-
/**
|
|
5241
|
-
* @deprecated This is a legacy alias of `lineClamp`.
|
|
5242
|
-
*
|
|
5243
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp)
|
|
5244
|
-
*/
|
|
5276
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp) */
|
|
5245
5277
|
webkitLineClamp: string;
|
|
5246
5278
|
/**
|
|
5247
5279
|
* @deprecated This is a legacy alias of `mask`.
|
|
@@ -5466,7 +5498,8 @@ interface CSSStyleRule extends CSSGroupingRule {
|
|
|
5466
5498
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText) */
|
|
5467
5499
|
selectorText: string;
|
|
5468
5500
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */
|
|
5469
|
-
|
|
5501
|
+
get style(): CSSStyleDeclaration;
|
|
5502
|
+
set style(cssText: string);
|
|
5470
5503
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */
|
|
5471
5504
|
readonly styleMap: StylePropertyMap;
|
|
5472
5505
|
}
|
|
@@ -5646,6 +5679,16 @@ declare var CSSVariableReferenceValue: {
|
|
|
5646
5679
|
new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;
|
|
5647
5680
|
};
|
|
5648
5681
|
|
|
5682
|
+
interface CSSViewTransitionRule extends CSSRule {
|
|
5683
|
+
readonly navigation: string;
|
|
5684
|
+
readonly types: ReadonlyArray<string>;
|
|
5685
|
+
}
|
|
5686
|
+
|
|
5687
|
+
declare var CSSViewTransitionRule: {
|
|
5688
|
+
prototype: CSSViewTransitionRule;
|
|
5689
|
+
new(): CSSViewTransitionRule;
|
|
5690
|
+
};
|
|
5691
|
+
|
|
5649
5692
|
/**
|
|
5650
5693
|
* Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
|
|
5651
5694
|
* Available only in secure contexts.
|
|
@@ -7424,7 +7467,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
7424
7467
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/location)
|
|
7425
7468
|
*/
|
|
7426
7469
|
get location(): Location;
|
|
7427
|
-
set location(href: string
|
|
7470
|
+
set location(href: string);
|
|
7428
7471
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenchange_event) */
|
|
7429
7472
|
onfullscreenchange: ((this: Document, ev: Event) => any) | null;
|
|
7430
7473
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenerror_event) */
|
|
@@ -7617,6 +7660,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
7617
7660
|
createEvent(eventInterface: "MouseEvent"): MouseEvent;
|
|
7618
7661
|
createEvent(eventInterface: "MouseEvents"): MouseEvent;
|
|
7619
7662
|
createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
|
|
7663
|
+
createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent;
|
|
7664
|
+
createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent;
|
|
7620
7665
|
createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
|
|
7621
7666
|
createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
|
|
7622
7667
|
createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
|
|
@@ -8076,7 +8121,8 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
8076
8121
|
*
|
|
8077
8122
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList)
|
|
8078
8123
|
*/
|
|
8079
|
-
|
|
8124
|
+
get classList(): DOMTokenList;
|
|
8125
|
+
set classList(value: string);
|
|
8080
8126
|
/**
|
|
8081
8127
|
* Returns the value of element's class content attribute. Can be set to change it.
|
|
8082
8128
|
*
|
|
@@ -8121,7 +8167,8 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
8121
8167
|
outerHTML: string;
|
|
8122
8168
|
readonly ownerDocument: Document;
|
|
8123
8169
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part) */
|
|
8124
|
-
|
|
8170
|
+
get part(): DOMTokenList;
|
|
8171
|
+
set part(value: string);
|
|
8125
8172
|
/**
|
|
8126
8173
|
* Returns the namespace prefix.
|
|
8127
8174
|
*
|
|
@@ -8337,7 +8384,8 @@ interface ElementCSSInlineStyle {
|
|
|
8337
8384
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) */
|
|
8338
8385
|
readonly attributeStyleMap: StylePropertyMap;
|
|
8339
8386
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */
|
|
8340
|
-
|
|
8387
|
+
get style(): CSSStyleDeclaration;
|
|
8388
|
+
set style(cssText: string);
|
|
8341
8389
|
}
|
|
8342
8390
|
|
|
8343
8391
|
interface ElementContentEditable {
|
|
@@ -9473,7 +9521,7 @@ interface GlobalEventHandlers {
|
|
|
9473
9521
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event)
|
|
9474
9522
|
*/
|
|
9475
9523
|
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
9476
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/
|
|
9524
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */
|
|
9477
9525
|
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
9478
9526
|
/**
|
|
9479
9527
|
* Occurs when playback is possible, but would require further buffering.
|
|
@@ -9961,7 +10009,8 @@ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
|
|
|
9961
10009
|
*/
|
|
9962
10010
|
rel: string;
|
|
9963
10011
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList) */
|
|
9964
|
-
|
|
10012
|
+
get relList(): DOMTokenList;
|
|
10013
|
+
set relList(value: string);
|
|
9965
10014
|
/**
|
|
9966
10015
|
* Sets or retrieves the relationship between the object and the destination of the link.
|
|
9967
10016
|
* @deprecated
|
|
@@ -10020,7 +10069,8 @@ interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
|
|
|
10020
10069
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/rel) */
|
|
10021
10070
|
rel: string;
|
|
10022
10071
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList) */
|
|
10023
|
-
|
|
10072
|
+
get relList(): DOMTokenList;
|
|
10073
|
+
set relList(value: string);
|
|
10024
10074
|
/** Sets or retrieves the shape of the object. */
|
|
10025
10075
|
shape: string;
|
|
10026
10076
|
/**
|
|
@@ -10172,9 +10222,17 @@ interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement {
|
|
|
10172
10222
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formMethod)
|
|
10173
10223
|
*/
|
|
10174
10224
|
formMethod: string;
|
|
10175
|
-
/**
|
|
10225
|
+
/**
|
|
10226
|
+
* Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
|
|
10227
|
+
*
|
|
10228
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formNoValidate)
|
|
10229
|
+
*/
|
|
10176
10230
|
formNoValidate: boolean;
|
|
10177
|
-
/**
|
|
10231
|
+
/**
|
|
10232
|
+
* Overrides the target attribute on a form element.
|
|
10233
|
+
*
|
|
10234
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formTarget)
|
|
10235
|
+
*/
|
|
10178
10236
|
formTarget: string;
|
|
10179
10237
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/labels) */
|
|
10180
10238
|
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
@@ -10801,10 +10859,15 @@ interface HTMLFormElement extends HTMLElement {
|
|
|
10801
10859
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/name)
|
|
10802
10860
|
*/
|
|
10803
10861
|
name: string;
|
|
10804
|
-
/**
|
|
10862
|
+
/**
|
|
10863
|
+
* Designates a form that is not validated when submitted.
|
|
10864
|
+
*
|
|
10865
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/noValidate)
|
|
10866
|
+
*/
|
|
10805
10867
|
noValidate: boolean;
|
|
10806
10868
|
rel: string;
|
|
10807
|
-
|
|
10869
|
+
get relList(): DOMTokenList;
|
|
10870
|
+
set relList(value: string);
|
|
10808
10871
|
/**
|
|
10809
10872
|
* Sets or retrieves the window or frame at which to target content.
|
|
10810
10873
|
*
|
|
@@ -11195,7 +11258,8 @@ interface HTMLIFrameElement extends HTMLElement {
|
|
|
11195
11258
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/referrerPolicy) */
|
|
11196
11259
|
referrerPolicy: ReferrerPolicy;
|
|
11197
11260
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/sandbox) */
|
|
11198
|
-
|
|
11261
|
+
get sandbox(): DOMTokenList;
|
|
11262
|
+
set sandbox(value: string);
|
|
11199
11263
|
/**
|
|
11200
11264
|
* Sets or retrieves whether the frame can be scrolled.
|
|
11201
11265
|
* @deprecated
|
|
@@ -11454,9 +11518,17 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|
|
11454
11518
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formMethod)
|
|
11455
11519
|
*/
|
|
11456
11520
|
formMethod: string;
|
|
11457
|
-
/**
|
|
11521
|
+
/**
|
|
11522
|
+
* Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
|
|
11523
|
+
*
|
|
11524
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formNoValidate)
|
|
11525
|
+
*/
|
|
11458
11526
|
formNoValidate: boolean;
|
|
11459
|
-
/**
|
|
11527
|
+
/**
|
|
11528
|
+
* Overrides the target attribute on a form element.
|
|
11529
|
+
*
|
|
11530
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formTarget)
|
|
11531
|
+
*/
|
|
11460
11532
|
formTarget: string;
|
|
11461
11533
|
/**
|
|
11462
11534
|
* Sets or retrieves the height of the object.
|
|
@@ -11764,6 +11836,9 @@ declare var HTMLLegendElement: {
|
|
|
11764
11836
|
interface HTMLLinkElement extends HTMLElement, LinkStyle {
|
|
11765
11837
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/as) */
|
|
11766
11838
|
as: string;
|
|
11839
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/blocking) */
|
|
11840
|
+
get blocking(): DOMTokenList;
|
|
11841
|
+
set blocking(value: string);
|
|
11767
11842
|
/**
|
|
11768
11843
|
* Sets or retrieves the character set used to encode the object.
|
|
11769
11844
|
* @deprecated
|
|
@@ -11806,13 +11881,15 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
|
|
|
11806
11881
|
*/
|
|
11807
11882
|
rel: string;
|
|
11808
11883
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/relList) */
|
|
11809
|
-
|
|
11884
|
+
get relList(): DOMTokenList;
|
|
11885
|
+
set relList(value: string);
|
|
11810
11886
|
/**
|
|
11811
11887
|
* Sets or retrieves the relationship between the object and the destination of the link.
|
|
11812
11888
|
* @deprecated
|
|
11813
11889
|
*/
|
|
11814
11890
|
rev: string;
|
|
11815
|
-
|
|
11891
|
+
get sizes(): DOMTokenList;
|
|
11892
|
+
set sizes(value: string);
|
|
11816
11893
|
/**
|
|
11817
11894
|
* Sets or retrieves the window or frame at which to target content.
|
|
11818
11895
|
* @deprecated
|
|
@@ -12570,7 +12647,8 @@ interface HTMLOutputElement extends HTMLElement {
|
|
|
12570
12647
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/form) */
|
|
12571
12648
|
readonly form: HTMLFormElement | null;
|
|
12572
12649
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/htmlFor) */
|
|
12573
|
-
|
|
12650
|
+
get htmlFor(): DOMTokenList;
|
|
12651
|
+
set htmlFor(value: string);
|
|
12574
12652
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/labels) */
|
|
12575
12653
|
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
12576
12654
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/name) */
|
|
@@ -12776,6 +12854,9 @@ declare var HTMLQuoteElement: {
|
|
|
12776
12854
|
interface HTMLScriptElement extends HTMLElement {
|
|
12777
12855
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/async) */
|
|
12778
12856
|
async: boolean;
|
|
12857
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/blocking) */
|
|
12858
|
+
get blocking(): DOMTokenList;
|
|
12859
|
+
set blocking(value: string);
|
|
12779
12860
|
/**
|
|
12780
12861
|
* Sets or retrieves the character set used to encode the object.
|
|
12781
12862
|
* @deprecated
|
|
@@ -13063,6 +13144,9 @@ declare var HTMLSpanElement: {
|
|
|
13063
13144
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement)
|
|
13064
13145
|
*/
|
|
13065
13146
|
interface HTMLStyleElement extends HTMLElement, LinkStyle {
|
|
13147
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/blocking) */
|
|
13148
|
+
get blocking(): DOMTokenList;
|
|
13149
|
+
set blocking(value: string);
|
|
13066
13150
|
/**
|
|
13067
13151
|
* Enables or disables the style sheet.
|
|
13068
13152
|
*
|
|
@@ -14871,6 +14955,70 @@ declare var ImageData: {
|
|
|
14871
14955
|
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
|
|
14872
14956
|
};
|
|
14873
14957
|
|
|
14958
|
+
/**
|
|
14959
|
+
* Available only in secure contexts.
|
|
14960
|
+
*
|
|
14961
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder)
|
|
14962
|
+
*/
|
|
14963
|
+
interface ImageDecoder {
|
|
14964
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/complete) */
|
|
14965
|
+
readonly complete: boolean;
|
|
14966
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/completed) */
|
|
14967
|
+
readonly completed: Promise<undefined>;
|
|
14968
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/tracks) */
|
|
14969
|
+
readonly tracks: ImageTrackList;
|
|
14970
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/type) */
|
|
14971
|
+
readonly type: string;
|
|
14972
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/close) */
|
|
14973
|
+
close(): void;
|
|
14974
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/decode) */
|
|
14975
|
+
decode(options?: ImageDecodeOptions): Promise<ImageDecodeResult>;
|
|
14976
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/reset) */
|
|
14977
|
+
reset(): void;
|
|
14978
|
+
}
|
|
14979
|
+
|
|
14980
|
+
declare var ImageDecoder: {
|
|
14981
|
+
prototype: ImageDecoder;
|
|
14982
|
+
new(init: ImageDecoderInit): ImageDecoder;
|
|
14983
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/isTypeSupported_static) */
|
|
14984
|
+
isTypeSupported(type: string): Promise<boolean>;
|
|
14985
|
+
};
|
|
14986
|
+
|
|
14987
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack) */
|
|
14988
|
+
interface ImageTrack {
|
|
14989
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/animated) */
|
|
14990
|
+
readonly animated: boolean;
|
|
14991
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/frameCount) */
|
|
14992
|
+
readonly frameCount: number;
|
|
14993
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/repetitionCount) */
|
|
14994
|
+
readonly repetitionCount: number;
|
|
14995
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/selected) */
|
|
14996
|
+
selected: boolean;
|
|
14997
|
+
}
|
|
14998
|
+
|
|
14999
|
+
declare var ImageTrack: {
|
|
15000
|
+
prototype: ImageTrack;
|
|
15001
|
+
new(): ImageTrack;
|
|
15002
|
+
};
|
|
15003
|
+
|
|
15004
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList) */
|
|
15005
|
+
interface ImageTrackList {
|
|
15006
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/length) */
|
|
15007
|
+
readonly length: number;
|
|
15008
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/ready) */
|
|
15009
|
+
readonly ready: Promise<undefined>;
|
|
15010
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedIndex) */
|
|
15011
|
+
readonly selectedIndex: number;
|
|
15012
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedTrack) */
|
|
15013
|
+
readonly selectedTrack: ImageTrack | null;
|
|
15014
|
+
[index: number]: ImageTrack;
|
|
15015
|
+
}
|
|
15016
|
+
|
|
15017
|
+
declare var ImageTrackList: {
|
|
15018
|
+
prototype: ImageTrackList;
|
|
15019
|
+
new(): ImageTrackList;
|
|
15020
|
+
};
|
|
15021
|
+
|
|
14874
15022
|
interface ImportMeta {
|
|
14875
15023
|
url: string;
|
|
14876
15024
|
resolve(specifier: string): string;
|
|
@@ -16382,6 +16530,52 @@ declare var NamedNodeMap: {
|
|
|
16382
16530
|
new(): NamedNodeMap;
|
|
16383
16531
|
};
|
|
16384
16532
|
|
|
16533
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation) */
|
|
16534
|
+
interface NavigationActivation {
|
|
16535
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/entry) */
|
|
16536
|
+
readonly entry: NavigationHistoryEntry;
|
|
16537
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/from) */
|
|
16538
|
+
readonly from: NavigationHistoryEntry | null;
|
|
16539
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/navigationType) */
|
|
16540
|
+
readonly navigationType: NavigationType;
|
|
16541
|
+
}
|
|
16542
|
+
|
|
16543
|
+
declare var NavigationActivation: {
|
|
16544
|
+
prototype: NavigationActivation;
|
|
16545
|
+
new(): NavigationActivation;
|
|
16546
|
+
};
|
|
16547
|
+
|
|
16548
|
+
interface NavigationHistoryEntryEventMap {
|
|
16549
|
+
"dispose": Event;
|
|
16550
|
+
}
|
|
16551
|
+
|
|
16552
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry) */
|
|
16553
|
+
interface NavigationHistoryEntry extends EventTarget {
|
|
16554
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/id) */
|
|
16555
|
+
readonly id: string;
|
|
16556
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/index) */
|
|
16557
|
+
readonly index: number;
|
|
16558
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/key) */
|
|
16559
|
+
readonly key: string;
|
|
16560
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/dispose_event) */
|
|
16561
|
+
ondispose: ((this: NavigationHistoryEntry, ev: Event) => any) | null;
|
|
16562
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/sameDocument) */
|
|
16563
|
+
readonly sameDocument: boolean;
|
|
16564
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/url) */
|
|
16565
|
+
readonly url: string | null;
|
|
16566
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/getState) */
|
|
16567
|
+
getState(): any;
|
|
16568
|
+
addEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
16569
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
16570
|
+
removeEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
16571
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
16572
|
+
}
|
|
16573
|
+
|
|
16574
|
+
declare var NavigationHistoryEntry: {
|
|
16575
|
+
prototype: NavigationHistoryEntry;
|
|
16576
|
+
new(): NavigationHistoryEntry;
|
|
16577
|
+
};
|
|
16578
|
+
|
|
16385
16579
|
/**
|
|
16386
16580
|
* Available only in secure contexts.
|
|
16387
16581
|
*
|
|
@@ -17239,6 +17433,30 @@ declare var OverconstrainedError: {
|
|
|
17239
17433
|
new(constraint: string, message?: string): OverconstrainedError;
|
|
17240
17434
|
};
|
|
17241
17435
|
|
|
17436
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent) */
|
|
17437
|
+
interface PageRevealEvent extends Event {
|
|
17438
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent/viewTransition) */
|
|
17439
|
+
readonly viewTransition: ViewTransition | null;
|
|
17440
|
+
}
|
|
17441
|
+
|
|
17442
|
+
declare var PageRevealEvent: {
|
|
17443
|
+
prototype: PageRevealEvent;
|
|
17444
|
+
new(type: string, eventInitDict?: PageRevealEventInit): PageRevealEvent;
|
|
17445
|
+
};
|
|
17446
|
+
|
|
17447
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent) */
|
|
17448
|
+
interface PageSwapEvent extends Event {
|
|
17449
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/activation) */
|
|
17450
|
+
readonly activation: NavigationActivation | null;
|
|
17451
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/viewTransition) */
|
|
17452
|
+
readonly viewTransition: ViewTransition | null;
|
|
17453
|
+
}
|
|
17454
|
+
|
|
17455
|
+
declare var PageSwapEvent: {
|
|
17456
|
+
prototype: PageSwapEvent;
|
|
17457
|
+
new(type: string, eventInitDict?: PageSwapEventInit): PageSwapEvent;
|
|
17458
|
+
};
|
|
17459
|
+
|
|
17242
17460
|
/**
|
|
17243
17461
|
* The PageTransitionEvent is fired when a document is being loaded or unloaded.
|
|
17244
17462
|
*
|
|
@@ -19491,7 +19709,8 @@ declare var Response: {
|
|
|
19491
19709
|
*/
|
|
19492
19710
|
interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
|
|
19493
19711
|
rel: string;
|
|
19494
|
-
|
|
19712
|
+
get relList(): DOMTokenList;
|
|
19713
|
+
set relList(value: string);
|
|
19495
19714
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/target) */
|
|
19496
19715
|
readonly target: SVGAnimatedString;
|
|
19497
19716
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -22455,7 +22674,8 @@ interface StyleSheet {
|
|
|
22455
22674
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/href) */
|
|
22456
22675
|
readonly href: string | null;
|
|
22457
22676
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/media) */
|
|
22458
|
-
|
|
22677
|
+
get media(): MediaList;
|
|
22678
|
+
set media(mediaText: string);
|
|
22459
22679
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/ownerNode) */
|
|
22460
22680
|
readonly ownerNode: Element | ProcessingInstruction | null;
|
|
22461
22681
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/parentStyleSheet) */
|
|
@@ -23628,6 +23848,7 @@ interface ViewTransition {
|
|
|
23628
23848
|
readonly finished: Promise<undefined>;
|
|
23629
23849
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/ready) */
|
|
23630
23850
|
readonly ready: Promise<undefined>;
|
|
23851
|
+
types: ViewTransitionTypeSet;
|
|
23631
23852
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/updateCallbackDone) */
|
|
23632
23853
|
readonly updateCallbackDone: Promise<undefined>;
|
|
23633
23854
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/skipTransition) */
|
|
@@ -23639,6 +23860,15 @@ declare var ViewTransition: {
|
|
|
23639
23860
|
new(): ViewTransition;
|
|
23640
23861
|
};
|
|
23641
23862
|
|
|
23863
|
+
interface ViewTransitionTypeSet {
|
|
23864
|
+
forEach(callbackfn: (value: string, key: string, parent: ViewTransitionTypeSet) => void, thisArg?: any): void;
|
|
23865
|
+
}
|
|
23866
|
+
|
|
23867
|
+
declare var ViewTransitionTypeSet: {
|
|
23868
|
+
prototype: ViewTransitionTypeSet;
|
|
23869
|
+
new(): ViewTransitionTypeSet;
|
|
23870
|
+
};
|
|
23871
|
+
|
|
23642
23872
|
interface VisualViewportEventMap {
|
|
23643
23873
|
"resize": Event;
|
|
23644
23874
|
"scroll": Event;
|
|
@@ -26376,7 +26606,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
|
|
|
26376
26606
|
readonly length: number;
|
|
26377
26607
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location) */
|
|
26378
26608
|
get location(): Location;
|
|
26379
|
-
set location(href: string
|
|
26609
|
+
set location(href: string);
|
|
26380
26610
|
/**
|
|
26381
26611
|
* Returns true if the location bar is visible; otherwise, returns false.
|
|
26382
26612
|
*
|
|
@@ -26429,17 +26659,9 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
|
|
|
26429
26659
|
readonly outerHeight: number;
|
|
26430
26660
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth) */
|
|
26431
26661
|
readonly outerWidth: number;
|
|
26432
|
-
/**
|
|
26433
|
-
* @deprecated This is a legacy alias of `scrollX`.
|
|
26434
|
-
*
|
|
26435
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX)
|
|
26436
|
-
*/
|
|
26662
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */
|
|
26437
26663
|
readonly pageXOffset: number;
|
|
26438
|
-
/**
|
|
26439
|
-
* @deprecated This is a legacy alias of `scrollY`.
|
|
26440
|
-
*
|
|
26441
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY)
|
|
26442
|
-
*/
|
|
26664
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */
|
|
26443
26665
|
readonly pageYOffset: number;
|
|
26444
26666
|
/**
|
|
26445
26667
|
* Refers to either the parent WindowProxy, or itself.
|
|
@@ -28072,17 +28294,9 @@ declare var orientation: number;
|
|
|
28072
28294
|
declare var outerHeight: number;
|
|
28073
28295
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth) */
|
|
28074
28296
|
declare var outerWidth: number;
|
|
28075
|
-
/**
|
|
28076
|
-
* @deprecated This is a legacy alias of `scrollX`.
|
|
28077
|
-
*
|
|
28078
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX)
|
|
28079
|
-
*/
|
|
28297
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */
|
|
28080
28298
|
declare var pageXOffset: number;
|
|
28081
|
-
/**
|
|
28082
|
-
* @deprecated This is a legacy alias of `scrollY`.
|
|
28083
|
-
*
|
|
28084
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY)
|
|
28085
|
-
*/
|
|
28299
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */
|
|
28086
28300
|
declare var pageYOffset: number;
|
|
28087
28301
|
/**
|
|
28088
28302
|
* Refers to either the parent WindowProxy, or itself.
|
|
@@ -28273,7 +28487,7 @@ declare var onbeforetoggle: ((this: Window, ev: Event) => any) | null;
|
|
|
28273
28487
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event)
|
|
28274
28488
|
*/
|
|
28275
28489
|
declare var onblur: ((this: Window, ev: FocusEvent) => any) | null;
|
|
28276
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/
|
|
28490
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */
|
|
28277
28491
|
declare var oncancel: ((this: Window, ev: Event) => any) | null;
|
|
28278
28492
|
/**
|
|
28279
28493
|
* Occurs when playback is possible, but would require further buffering.
|
|
@@ -28818,6 +29032,7 @@ type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
|
28818
29032
|
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
28819
29033
|
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
|
|
28820
29034
|
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
|
|
29035
|
+
type ImageBufferSource = AllowSharedBufferSource | ReadableStream;
|
|
28821
29036
|
type Int32List = Int32Array | GLint[];
|
|
28822
29037
|
type LineAndPositionSetting = number | AutoKeyword;
|
|
28823
29038
|
type MediaProvider = MediaStream | MediaSource | Blob;
|
|
@@ -28943,6 +29158,7 @@ type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "se
|
|
|
28943
29158
|
type MediaSessionPlaybackState = "none" | "paused" | "playing";
|
|
28944
29159
|
type MediaStreamTrackState = "ended" | "live";
|
|
28945
29160
|
type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
|
|
29161
|
+
type NavigationType = "push" | "reload" | "replace" | "traverse";
|
|
28946
29162
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
28947
29163
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
28948
29164
|
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
|
package/iterable.d.ts
CHANGED
|
@@ -2,11 +2,6 @@
|
|
|
2
2
|
/// Window Iterable APIs
|
|
3
3
|
/////////////////////////////
|
|
4
4
|
|
|
5
|
-
interface AbortSignal {
|
|
6
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
|
|
7
|
-
any(signals: Iterable<AbortSignal>): AbortSignal;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
5
|
interface AudioParam {
|
|
11
6
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */
|
|
12
7
|
setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
|
|
@@ -176,6 +171,10 @@ interface IDBObjectStore {
|
|
|
176
171
|
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
|
|
177
172
|
}
|
|
178
173
|
|
|
174
|
+
interface ImageTrackList {
|
|
175
|
+
[Symbol.iterator](): ArrayIterator<ImageTrack>;
|
|
176
|
+
}
|
|
177
|
+
|
|
179
178
|
interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {
|
|
180
179
|
}
|
|
181
180
|
|
|
@@ -350,6 +349,9 @@ interface URLSearchParams {
|
|
|
350
349
|
values(): URLSearchParamsIterator<string>;
|
|
351
350
|
}
|
|
352
351
|
|
|
352
|
+
interface ViewTransitionTypeSet extends Set<string> {
|
|
353
|
+
}
|
|
354
|
+
|
|
353
355
|
interface WEBGL_draw_buffers {
|
|
354
356
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */
|
|
355
357
|
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -771,6 +771,26 @@ interface ImageDataSettings {
|
|
|
771
771
|
colorSpace?: PredefinedColorSpace;
|
|
772
772
|
}
|
|
773
773
|
|
|
774
|
+
interface ImageDecodeOptions {
|
|
775
|
+
completeFramesOnly?: boolean;
|
|
776
|
+
frameIndex?: number;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
interface ImageDecodeResult {
|
|
780
|
+
complete: boolean;
|
|
781
|
+
image: VideoFrame;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
interface ImageDecoderInit {
|
|
785
|
+
colorSpaceConversion?: ColorSpaceConversion;
|
|
786
|
+
data: ImageBufferSource;
|
|
787
|
+
desiredHeight?: number;
|
|
788
|
+
desiredWidth?: number;
|
|
789
|
+
preferAnimation?: boolean;
|
|
790
|
+
transfer?: ArrayBuffer[];
|
|
791
|
+
type: string;
|
|
792
|
+
}
|
|
793
|
+
|
|
774
794
|
interface ImageEncodeOptions {
|
|
775
795
|
quality?: number;
|
|
776
796
|
type?: string;
|
|
@@ -1162,6 +1182,15 @@ interface OscillatorOptions extends AudioNodeOptions {
|
|
|
1162
1182
|
type?: OscillatorType;
|
|
1163
1183
|
}
|
|
1164
1184
|
|
|
1185
|
+
interface PageRevealEventInit extends EventInit {
|
|
1186
|
+
viewTransition?: ViewTransition | null;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
interface PageSwapEventInit extends EventInit {
|
|
1190
|
+
activation?: NavigationActivation | null;
|
|
1191
|
+
viewTransition?: ViewTransition | null;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1165
1194
|
interface PageTransitionEventInit extends EventInit {
|
|
1166
1195
|
persisted?: boolean;
|
|
1167
1196
|
}
|
|
@@ -5005,6 +5034,7 @@ interface CSSStyleDeclaration {
|
|
|
5005
5034
|
vectorEffect: string;
|
|
5006
5035
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */
|
|
5007
5036
|
verticalAlign: string;
|
|
5037
|
+
viewTransitionClass: string;
|
|
5008
5038
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */
|
|
5009
5039
|
viewTransitionName: string;
|
|
5010
5040
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */
|
|
@@ -5237,11 +5267,7 @@ interface CSSStyleDeclaration {
|
|
|
5237
5267
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content)
|
|
5238
5268
|
*/
|
|
5239
5269
|
webkitJustifyContent: string;
|
|
5240
|
-
/**
|
|
5241
|
-
* @deprecated This is a legacy alias of `lineClamp`.
|
|
5242
|
-
*
|
|
5243
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp)
|
|
5244
|
-
*/
|
|
5270
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp) */
|
|
5245
5271
|
webkitLineClamp: string;
|
|
5246
5272
|
/**
|
|
5247
5273
|
* @deprecated This is a legacy alias of `mask`.
|
|
@@ -5646,6 +5672,16 @@ declare var CSSVariableReferenceValue: {
|
|
|
5646
5672
|
new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;
|
|
5647
5673
|
};
|
|
5648
5674
|
|
|
5675
|
+
interface CSSViewTransitionRule extends CSSRule {
|
|
5676
|
+
readonly navigation: string;
|
|
5677
|
+
readonly types: ReadonlyArray<string>;
|
|
5678
|
+
}
|
|
5679
|
+
|
|
5680
|
+
declare var CSSViewTransitionRule: {
|
|
5681
|
+
prototype: CSSViewTransitionRule;
|
|
5682
|
+
new(): CSSViewTransitionRule;
|
|
5683
|
+
};
|
|
5684
|
+
|
|
5649
5685
|
/**
|
|
5650
5686
|
* Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
|
|
5651
5687
|
* Available only in secure contexts.
|
|
@@ -7617,6 +7653,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
7617
7653
|
createEvent(eventInterface: "MouseEvent"): MouseEvent;
|
|
7618
7654
|
createEvent(eventInterface: "MouseEvents"): MouseEvent;
|
|
7619
7655
|
createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
|
|
7656
|
+
createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent;
|
|
7657
|
+
createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent;
|
|
7620
7658
|
createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
|
|
7621
7659
|
createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
|
|
7622
7660
|
createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
|
|
@@ -9473,7 +9511,7 @@ interface GlobalEventHandlers {
|
|
|
9473
9511
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event)
|
|
9474
9512
|
*/
|
|
9475
9513
|
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
9476
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/
|
|
9514
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */
|
|
9477
9515
|
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
9478
9516
|
/**
|
|
9479
9517
|
* Occurs when playback is possible, but would require further buffering.
|
|
@@ -10172,9 +10210,17 @@ interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement {
|
|
|
10172
10210
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formMethod)
|
|
10173
10211
|
*/
|
|
10174
10212
|
formMethod: string;
|
|
10175
|
-
/**
|
|
10213
|
+
/**
|
|
10214
|
+
* Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
|
|
10215
|
+
*
|
|
10216
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formNoValidate)
|
|
10217
|
+
*/
|
|
10176
10218
|
formNoValidate: boolean;
|
|
10177
|
-
/**
|
|
10219
|
+
/**
|
|
10220
|
+
* Overrides the target attribute on a form element.
|
|
10221
|
+
*
|
|
10222
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formTarget)
|
|
10223
|
+
*/
|
|
10178
10224
|
formTarget: string;
|
|
10179
10225
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/labels) */
|
|
10180
10226
|
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
@@ -10801,7 +10847,11 @@ interface HTMLFormElement extends HTMLElement {
|
|
|
10801
10847
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/name)
|
|
10802
10848
|
*/
|
|
10803
10849
|
name: string;
|
|
10804
|
-
/**
|
|
10850
|
+
/**
|
|
10851
|
+
* Designates a form that is not validated when submitted.
|
|
10852
|
+
*
|
|
10853
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/noValidate)
|
|
10854
|
+
*/
|
|
10805
10855
|
noValidate: boolean;
|
|
10806
10856
|
rel: string;
|
|
10807
10857
|
readonly relList: DOMTokenList;
|
|
@@ -11454,9 +11504,17 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|
|
11454
11504
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formMethod)
|
|
11455
11505
|
*/
|
|
11456
11506
|
formMethod: string;
|
|
11457
|
-
/**
|
|
11507
|
+
/**
|
|
11508
|
+
* Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
|
|
11509
|
+
*
|
|
11510
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formNoValidate)
|
|
11511
|
+
*/
|
|
11458
11512
|
formNoValidate: boolean;
|
|
11459
|
-
/**
|
|
11513
|
+
/**
|
|
11514
|
+
* Overrides the target attribute on a form element.
|
|
11515
|
+
*
|
|
11516
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formTarget)
|
|
11517
|
+
*/
|
|
11460
11518
|
formTarget: string;
|
|
11461
11519
|
/**
|
|
11462
11520
|
* Sets or retrieves the height of the object.
|
|
@@ -11764,6 +11822,8 @@ declare var HTMLLegendElement: {
|
|
|
11764
11822
|
interface HTMLLinkElement extends HTMLElement, LinkStyle {
|
|
11765
11823
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/as) */
|
|
11766
11824
|
as: string;
|
|
11825
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/blocking) */
|
|
11826
|
+
readonly blocking: DOMTokenList;
|
|
11767
11827
|
/**
|
|
11768
11828
|
* Sets or retrieves the character set used to encode the object.
|
|
11769
11829
|
* @deprecated
|
|
@@ -12776,6 +12836,8 @@ declare var HTMLQuoteElement: {
|
|
|
12776
12836
|
interface HTMLScriptElement extends HTMLElement {
|
|
12777
12837
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/async) */
|
|
12778
12838
|
async: boolean;
|
|
12839
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/blocking) */
|
|
12840
|
+
readonly blocking: DOMTokenList;
|
|
12779
12841
|
/**
|
|
12780
12842
|
* Sets or retrieves the character set used to encode the object.
|
|
12781
12843
|
* @deprecated
|
|
@@ -13063,6 +13125,8 @@ declare var HTMLSpanElement: {
|
|
|
13063
13125
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement)
|
|
13064
13126
|
*/
|
|
13065
13127
|
interface HTMLStyleElement extends HTMLElement, LinkStyle {
|
|
13128
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/blocking) */
|
|
13129
|
+
readonly blocking: DOMTokenList;
|
|
13066
13130
|
/**
|
|
13067
13131
|
* Enables or disables the style sheet.
|
|
13068
13132
|
*
|
|
@@ -14871,6 +14935,70 @@ declare var ImageData: {
|
|
|
14871
14935
|
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
|
|
14872
14936
|
};
|
|
14873
14937
|
|
|
14938
|
+
/**
|
|
14939
|
+
* Available only in secure contexts.
|
|
14940
|
+
*
|
|
14941
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder)
|
|
14942
|
+
*/
|
|
14943
|
+
interface ImageDecoder {
|
|
14944
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/complete) */
|
|
14945
|
+
readonly complete: boolean;
|
|
14946
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/completed) */
|
|
14947
|
+
readonly completed: Promise<undefined>;
|
|
14948
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/tracks) */
|
|
14949
|
+
readonly tracks: ImageTrackList;
|
|
14950
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/type) */
|
|
14951
|
+
readonly type: string;
|
|
14952
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/close) */
|
|
14953
|
+
close(): void;
|
|
14954
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/decode) */
|
|
14955
|
+
decode(options?: ImageDecodeOptions): Promise<ImageDecodeResult>;
|
|
14956
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/reset) */
|
|
14957
|
+
reset(): void;
|
|
14958
|
+
}
|
|
14959
|
+
|
|
14960
|
+
declare var ImageDecoder: {
|
|
14961
|
+
prototype: ImageDecoder;
|
|
14962
|
+
new(init: ImageDecoderInit): ImageDecoder;
|
|
14963
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/isTypeSupported_static) */
|
|
14964
|
+
isTypeSupported(type: string): Promise<boolean>;
|
|
14965
|
+
};
|
|
14966
|
+
|
|
14967
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack) */
|
|
14968
|
+
interface ImageTrack {
|
|
14969
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/animated) */
|
|
14970
|
+
readonly animated: boolean;
|
|
14971
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/frameCount) */
|
|
14972
|
+
readonly frameCount: number;
|
|
14973
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/repetitionCount) */
|
|
14974
|
+
readonly repetitionCount: number;
|
|
14975
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/selected) */
|
|
14976
|
+
selected: boolean;
|
|
14977
|
+
}
|
|
14978
|
+
|
|
14979
|
+
declare var ImageTrack: {
|
|
14980
|
+
prototype: ImageTrack;
|
|
14981
|
+
new(): ImageTrack;
|
|
14982
|
+
};
|
|
14983
|
+
|
|
14984
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList) */
|
|
14985
|
+
interface ImageTrackList {
|
|
14986
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/length) */
|
|
14987
|
+
readonly length: number;
|
|
14988
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/ready) */
|
|
14989
|
+
readonly ready: Promise<undefined>;
|
|
14990
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedIndex) */
|
|
14991
|
+
readonly selectedIndex: number;
|
|
14992
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedTrack) */
|
|
14993
|
+
readonly selectedTrack: ImageTrack | null;
|
|
14994
|
+
[index: number]: ImageTrack;
|
|
14995
|
+
}
|
|
14996
|
+
|
|
14997
|
+
declare var ImageTrackList: {
|
|
14998
|
+
prototype: ImageTrackList;
|
|
14999
|
+
new(): ImageTrackList;
|
|
15000
|
+
};
|
|
15001
|
+
|
|
14874
15002
|
interface ImportMeta {
|
|
14875
15003
|
url: string;
|
|
14876
15004
|
resolve(specifier: string): string;
|
|
@@ -16382,6 +16510,52 @@ declare var NamedNodeMap: {
|
|
|
16382
16510
|
new(): NamedNodeMap;
|
|
16383
16511
|
};
|
|
16384
16512
|
|
|
16513
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation) */
|
|
16514
|
+
interface NavigationActivation {
|
|
16515
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/entry) */
|
|
16516
|
+
readonly entry: NavigationHistoryEntry;
|
|
16517
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/from) */
|
|
16518
|
+
readonly from: NavigationHistoryEntry | null;
|
|
16519
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/navigationType) */
|
|
16520
|
+
readonly navigationType: NavigationType;
|
|
16521
|
+
}
|
|
16522
|
+
|
|
16523
|
+
declare var NavigationActivation: {
|
|
16524
|
+
prototype: NavigationActivation;
|
|
16525
|
+
new(): NavigationActivation;
|
|
16526
|
+
};
|
|
16527
|
+
|
|
16528
|
+
interface NavigationHistoryEntryEventMap {
|
|
16529
|
+
"dispose": Event;
|
|
16530
|
+
}
|
|
16531
|
+
|
|
16532
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry) */
|
|
16533
|
+
interface NavigationHistoryEntry extends EventTarget {
|
|
16534
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/id) */
|
|
16535
|
+
readonly id: string;
|
|
16536
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/index) */
|
|
16537
|
+
readonly index: number;
|
|
16538
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/key) */
|
|
16539
|
+
readonly key: string;
|
|
16540
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/dispose_event) */
|
|
16541
|
+
ondispose: ((this: NavigationHistoryEntry, ev: Event) => any) | null;
|
|
16542
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/sameDocument) */
|
|
16543
|
+
readonly sameDocument: boolean;
|
|
16544
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/url) */
|
|
16545
|
+
readonly url: string | null;
|
|
16546
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/getState) */
|
|
16547
|
+
getState(): any;
|
|
16548
|
+
addEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
16549
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
16550
|
+
removeEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
16551
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
16552
|
+
}
|
|
16553
|
+
|
|
16554
|
+
declare var NavigationHistoryEntry: {
|
|
16555
|
+
prototype: NavigationHistoryEntry;
|
|
16556
|
+
new(): NavigationHistoryEntry;
|
|
16557
|
+
};
|
|
16558
|
+
|
|
16385
16559
|
/**
|
|
16386
16560
|
* Available only in secure contexts.
|
|
16387
16561
|
*
|
|
@@ -17239,6 +17413,30 @@ declare var OverconstrainedError: {
|
|
|
17239
17413
|
new(constraint: string, message?: string): OverconstrainedError;
|
|
17240
17414
|
};
|
|
17241
17415
|
|
|
17416
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent) */
|
|
17417
|
+
interface PageRevealEvent extends Event {
|
|
17418
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent/viewTransition) */
|
|
17419
|
+
readonly viewTransition: ViewTransition | null;
|
|
17420
|
+
}
|
|
17421
|
+
|
|
17422
|
+
declare var PageRevealEvent: {
|
|
17423
|
+
prototype: PageRevealEvent;
|
|
17424
|
+
new(type: string, eventInitDict?: PageRevealEventInit): PageRevealEvent;
|
|
17425
|
+
};
|
|
17426
|
+
|
|
17427
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent) */
|
|
17428
|
+
interface PageSwapEvent extends Event {
|
|
17429
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/activation) */
|
|
17430
|
+
readonly activation: NavigationActivation | null;
|
|
17431
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/viewTransition) */
|
|
17432
|
+
readonly viewTransition: ViewTransition | null;
|
|
17433
|
+
}
|
|
17434
|
+
|
|
17435
|
+
declare var PageSwapEvent: {
|
|
17436
|
+
prototype: PageSwapEvent;
|
|
17437
|
+
new(type: string, eventInitDict?: PageSwapEventInit): PageSwapEvent;
|
|
17438
|
+
};
|
|
17439
|
+
|
|
17242
17440
|
/**
|
|
17243
17441
|
* The PageTransitionEvent is fired when a document is being loaded or unloaded.
|
|
17244
17442
|
*
|
|
@@ -23628,6 +23826,7 @@ interface ViewTransition {
|
|
|
23628
23826
|
readonly finished: Promise<undefined>;
|
|
23629
23827
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/ready) */
|
|
23630
23828
|
readonly ready: Promise<undefined>;
|
|
23829
|
+
types: ViewTransitionTypeSet;
|
|
23631
23830
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/updateCallbackDone) */
|
|
23632
23831
|
readonly updateCallbackDone: Promise<undefined>;
|
|
23633
23832
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/skipTransition) */
|
|
@@ -23639,6 +23838,15 @@ declare var ViewTransition: {
|
|
|
23639
23838
|
new(): ViewTransition;
|
|
23640
23839
|
};
|
|
23641
23840
|
|
|
23841
|
+
interface ViewTransitionTypeSet {
|
|
23842
|
+
forEach(callbackfn: (value: string, key: string, parent: ViewTransitionTypeSet) => void, thisArg?: any): void;
|
|
23843
|
+
}
|
|
23844
|
+
|
|
23845
|
+
declare var ViewTransitionTypeSet: {
|
|
23846
|
+
prototype: ViewTransitionTypeSet;
|
|
23847
|
+
new(): ViewTransitionTypeSet;
|
|
23848
|
+
};
|
|
23849
|
+
|
|
23642
23850
|
interface VisualViewportEventMap {
|
|
23643
23851
|
"resize": Event;
|
|
23644
23852
|
"scroll": Event;
|
|
@@ -26429,17 +26637,9 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
|
|
|
26429
26637
|
readonly outerHeight: number;
|
|
26430
26638
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth) */
|
|
26431
26639
|
readonly outerWidth: number;
|
|
26432
|
-
/**
|
|
26433
|
-
* @deprecated This is a legacy alias of `scrollX`.
|
|
26434
|
-
*
|
|
26435
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX)
|
|
26436
|
-
*/
|
|
26640
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */
|
|
26437
26641
|
readonly pageXOffset: number;
|
|
26438
|
-
/**
|
|
26439
|
-
* @deprecated This is a legacy alias of `scrollY`.
|
|
26440
|
-
*
|
|
26441
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY)
|
|
26442
|
-
*/
|
|
26642
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */
|
|
26443
26643
|
readonly pageYOffset: number;
|
|
26444
26644
|
/**
|
|
26445
26645
|
* Refers to either the parent WindowProxy, or itself.
|
|
@@ -28072,17 +28272,9 @@ declare var orientation: number;
|
|
|
28072
28272
|
declare var outerHeight: number;
|
|
28073
28273
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth) */
|
|
28074
28274
|
declare var outerWidth: number;
|
|
28075
|
-
/**
|
|
28076
|
-
* @deprecated This is a legacy alias of `scrollX`.
|
|
28077
|
-
*
|
|
28078
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX)
|
|
28079
|
-
*/
|
|
28275
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */
|
|
28080
28276
|
declare var pageXOffset: number;
|
|
28081
|
-
/**
|
|
28082
|
-
* @deprecated This is a legacy alias of `scrollY`.
|
|
28083
|
-
*
|
|
28084
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY)
|
|
28085
|
-
*/
|
|
28277
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */
|
|
28086
28278
|
declare var pageYOffset: number;
|
|
28087
28279
|
/**
|
|
28088
28280
|
* Refers to either the parent WindowProxy, or itself.
|
|
@@ -28273,7 +28465,7 @@ declare var onbeforetoggle: ((this: Window, ev: Event) => any) | null;
|
|
|
28273
28465
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event)
|
|
28274
28466
|
*/
|
|
28275
28467
|
declare var onblur: ((this: Window, ev: FocusEvent) => any) | null;
|
|
28276
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/
|
|
28468
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */
|
|
28277
28469
|
declare var oncancel: ((this: Window, ev: Event) => any) | null;
|
|
28278
28470
|
/**
|
|
28279
28471
|
* Occurs when playback is possible, but would require further buffering.
|
|
@@ -28818,6 +29010,7 @@ type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
|
28818
29010
|
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
28819
29011
|
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
|
|
28820
29012
|
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
|
|
29013
|
+
type ImageBufferSource = AllowSharedBufferSource | ReadableStream;
|
|
28821
29014
|
type Int32List = Int32Array | GLint[];
|
|
28822
29015
|
type LineAndPositionSetting = number | AutoKeyword;
|
|
28823
29016
|
type MediaProvider = MediaStream | MediaSource | Blob;
|
|
@@ -28943,6 +29136,7 @@ type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "se
|
|
|
28943
29136
|
type MediaSessionPlaybackState = "none" | "paused" | "playing";
|
|
28944
29137
|
type MediaStreamTrackState = "ended" | "live";
|
|
28945
29138
|
type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
|
|
29139
|
+
type NavigationType = "push" | "reload" | "replace" | "traverse";
|
|
28946
29140
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
28947
29141
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
28948
29142
|
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
|
package/ts5.5/iterable.d.ts
CHANGED
|
@@ -2,11 +2,6 @@
|
|
|
2
2
|
/// Window Iterable APIs
|
|
3
3
|
/////////////////////////////
|
|
4
4
|
|
|
5
|
-
interface AbortSignal {
|
|
6
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
|
|
7
|
-
any(signals: Iterable<AbortSignal>): AbortSignal;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
5
|
interface AudioParam {
|
|
11
6
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */
|
|
12
7
|
setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
|
|
@@ -168,6 +163,10 @@ interface IDBObjectStore {
|
|
|
168
163
|
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
|
|
169
164
|
}
|
|
170
165
|
|
|
166
|
+
interface ImageTrackList {
|
|
167
|
+
[Symbol.iterator](): IterableIterator<ImageTrack>;
|
|
168
|
+
}
|
|
169
|
+
|
|
171
170
|
interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {
|
|
172
171
|
}
|
|
173
172
|
|
|
@@ -330,6 +329,9 @@ interface URLSearchParams {
|
|
|
330
329
|
values(): IterableIterator<string>;
|
|
331
330
|
}
|
|
332
331
|
|
|
332
|
+
interface ViewTransitionTypeSet extends Set<string> {
|
|
333
|
+
}
|
|
334
|
+
|
|
333
335
|
interface WEBGL_draw_buffers {
|
|
334
336
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */
|
|
335
337
|
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|