@types/web 0.0.142 → 0.0.144
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 +104 -21
- package/iterable.d.ts +1 -1
- package/package.json +1 -1
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.144 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.144.
|
package/index.d.ts
CHANGED
|
@@ -565,6 +565,8 @@ interface GainOptions extends AudioNodeOptions {
|
|
|
565
565
|
|
|
566
566
|
interface GamepadEffectParameters {
|
|
567
567
|
duration?: number;
|
|
568
|
+
leftTrigger?: number;
|
|
569
|
+
rightTrigger?: number;
|
|
568
570
|
startDelay?: number;
|
|
569
571
|
strongMagnitude?: number;
|
|
570
572
|
weakMagnitude?: number;
|
|
@@ -1367,8 +1369,8 @@ interface RTCIceCandidateInit {
|
|
|
1367
1369
|
}
|
|
1368
1370
|
|
|
1369
1371
|
interface RTCIceCandidatePair {
|
|
1370
|
-
local
|
|
1371
|
-
remote
|
|
1372
|
+
local: RTCIceCandidate;
|
|
1373
|
+
remote: RTCIceCandidate;
|
|
1372
1374
|
}
|
|
1373
1375
|
|
|
1374
1376
|
interface RTCIceCandidatePairStats extends RTCStats {
|
|
@@ -1628,6 +1630,17 @@ interface ReadableStreamGetReaderOptions {
|
|
|
1628
1630
|
mode?: ReadableStreamReaderMode;
|
|
1629
1631
|
}
|
|
1630
1632
|
|
|
1633
|
+
interface ReadableStreamIteratorOptions {
|
|
1634
|
+
/**
|
|
1635
|
+
* Asynchronously iterates over the chunks in the stream's internal queue.
|
|
1636
|
+
*
|
|
1637
|
+
* Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop.
|
|
1638
|
+
*
|
|
1639
|
+
* By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option.
|
|
1640
|
+
*/
|
|
1641
|
+
preventCancel?: boolean;
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1631
1644
|
interface ReadableStreamReadDoneResult<T> {
|
|
1632
1645
|
done: true;
|
|
1633
1646
|
value?: T;
|
|
@@ -1774,6 +1787,7 @@ interface SecurityPolicyViolationEventInit extends EventInit {
|
|
|
1774
1787
|
interface ShadowRootInit {
|
|
1775
1788
|
delegatesFocus?: boolean;
|
|
1776
1789
|
mode: ShadowRootMode;
|
|
1790
|
+
serializable?: boolean;
|
|
1777
1791
|
slotAssignment?: SlotAssignmentMode;
|
|
1778
1792
|
}
|
|
1779
1793
|
|
|
@@ -2198,6 +2212,8 @@ interface ARIAMixin {
|
|
|
2198
2212
|
ariaAtomic: string | null;
|
|
2199
2213
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */
|
|
2200
2214
|
ariaAutoComplete: string | null;
|
|
2215
|
+
ariaBrailleLabel: string | null;
|
|
2216
|
+
ariaBrailleRoleDescription: string | null;
|
|
2201
2217
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */
|
|
2202
2218
|
ariaBusy: string | null;
|
|
2203
2219
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */
|
|
@@ -3826,6 +3842,15 @@ declare var CSSSkewY: {
|
|
|
3826
3842
|
new(ay: CSSNumericValue): CSSSkewY;
|
|
3827
3843
|
};
|
|
3828
3844
|
|
|
3845
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStartingStyleRule) */
|
|
3846
|
+
interface CSSStartingStyleRule extends CSSGroupingRule {
|
|
3847
|
+
}
|
|
3848
|
+
|
|
3849
|
+
declare var CSSStartingStyleRule: {
|
|
3850
|
+
prototype: CSSStartingStyleRule;
|
|
3851
|
+
new(): CSSStartingStyleRule;
|
|
3852
|
+
};
|
|
3853
|
+
|
|
3829
3854
|
/**
|
|
3830
3855
|
* An object that is a CSS declaration block, and exposes style information and various style-related methods and properties.
|
|
3831
3856
|
*
|
|
@@ -4600,6 +4625,7 @@ interface CSSStyleDeclaration {
|
|
|
4600
4625
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */
|
|
4601
4626
|
textWrap: string;
|
|
4602
4627
|
textWrapMode: string;
|
|
4628
|
+
textWrapStyle: string;
|
|
4603
4629
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */
|
|
4604
4630
|
top: string;
|
|
4605
4631
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */
|
|
@@ -4863,7 +4889,11 @@ interface CSSStyleDeclaration {
|
|
|
4863
4889
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content)
|
|
4864
4890
|
*/
|
|
4865
4891
|
webkitJustifyContent: string;
|
|
4866
|
-
/**
|
|
4892
|
+
/**
|
|
4893
|
+
* @deprecated This is a legacy alias of `lineClamp`.
|
|
4894
|
+
*
|
|
4895
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp)
|
|
4896
|
+
*/
|
|
4867
4897
|
webkitLineClamp: string;
|
|
4868
4898
|
/**
|
|
4869
4899
|
* @deprecated This is a legacy alias of `mask`.
|
|
@@ -5525,6 +5555,8 @@ interface CanvasShadowStyles {
|
|
|
5525
5555
|
}
|
|
5526
5556
|
|
|
5527
5557
|
interface CanvasState {
|
|
5558
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isContextLost) */
|
|
5559
|
+
isContextLost(): boolean;
|
|
5528
5560
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */
|
|
5529
5561
|
reset(): void;
|
|
5530
5562
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
|
|
@@ -7239,6 +7271,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
7239
7271
|
createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
|
|
7240
7272
|
createEvent(eventInterface: "StorageEvent"): StorageEvent;
|
|
7241
7273
|
createEvent(eventInterface: "SubmitEvent"): SubmitEvent;
|
|
7274
|
+
createEvent(eventInterface: "TextEvent"): TextEvent;
|
|
7242
7275
|
createEvent(eventInterface: "ToggleEvent"): ToggleEvent;
|
|
7243
7276
|
createEvent(eventInterface: "TouchEvent"): TouchEvent;
|
|
7244
7277
|
createEvent(eventInterface: "TrackEvent"): TrackEvent;
|
|
@@ -7675,7 +7708,7 @@ interface ElementEventMap {
|
|
|
7675
7708
|
*
|
|
7676
7709
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element)
|
|
7677
7710
|
*/
|
|
7678
|
-
interface Element extends Node, ARIAMixin, Animatable, ChildNode,
|
|
7711
|
+
interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTypeChildNode, ParentNode, Slottable {
|
|
7679
7712
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes) */
|
|
7680
7713
|
readonly attributes: NamedNodeMap;
|
|
7681
7714
|
/**
|
|
@@ -7704,6 +7737,8 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
|
|
|
7704
7737
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id)
|
|
7705
7738
|
*/
|
|
7706
7739
|
id: string;
|
|
7740
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */
|
|
7741
|
+
innerHTML: string;
|
|
7707
7742
|
/**
|
|
7708
7743
|
* Returns the local name.
|
|
7709
7744
|
*
|
|
@@ -7843,7 +7878,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
|
|
|
7843
7878
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) */
|
|
7844
7879
|
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
7845
7880
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) */
|
|
7846
|
-
insertAdjacentHTML(position: InsertPosition,
|
|
7881
|
+
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
7847
7882
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) */
|
|
7848
7883
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
7849
7884
|
/**
|
|
@@ -8933,7 +8968,9 @@ interface GlobalEventHandlersEventMap {
|
|
|
8933
8968
|
"compositionend": CompositionEvent;
|
|
8934
8969
|
"compositionstart": CompositionEvent;
|
|
8935
8970
|
"compositionupdate": CompositionEvent;
|
|
8971
|
+
"contextlost": Event;
|
|
8936
8972
|
"contextmenu": MouseEvent;
|
|
8973
|
+
"contextrestored": Event;
|
|
8937
8974
|
"copy": ClipboardEvent;
|
|
8938
8975
|
"cuechange": Event;
|
|
8939
8976
|
"cut": ClipboardEvent;
|
|
@@ -9074,6 +9111,8 @@ interface GlobalEventHandlers {
|
|
|
9074
9111
|
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
9075
9112
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
|
|
9076
9113
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
9114
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/webglcontextlost_event) */
|
|
9115
|
+
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
9077
9116
|
/**
|
|
9078
9117
|
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
|
|
9079
9118
|
* @param ev The mouse event.
|
|
@@ -9081,6 +9120,8 @@ interface GlobalEventHandlers {
|
|
|
9081
9120
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event)
|
|
9082
9121
|
*/
|
|
9083
9122
|
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
9123
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event) */
|
|
9124
|
+
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
9084
9125
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */
|
|
9085
9126
|
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
9086
9127
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */
|
|
@@ -10849,6 +10890,7 @@ interface HTMLIFrameElement extends HTMLElement {
|
|
|
10849
10890
|
name: string;
|
|
10850
10891
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/referrerPolicy) */
|
|
10851
10892
|
referrerPolicy: ReferrerPolicy;
|
|
10893
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/sandbox) */
|
|
10852
10894
|
readonly sandbox: DOMTokenList;
|
|
10853
10895
|
/**
|
|
10854
10896
|
* Sets or retrieves whether the frame can be scrolled.
|
|
@@ -11405,6 +11447,7 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
|
|
|
11405
11447
|
hreflang: string;
|
|
11406
11448
|
imageSizes: string;
|
|
11407
11449
|
imageSrcset: string;
|
|
11450
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/integrity) */
|
|
11408
11451
|
integrity: string;
|
|
11409
11452
|
/** Sets or retrieves the media type. */
|
|
11410
11453
|
media: string;
|
|
@@ -11430,7 +11473,11 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
|
|
|
11430
11473
|
* @deprecated
|
|
11431
11474
|
*/
|
|
11432
11475
|
target: string;
|
|
11433
|
-
/**
|
|
11476
|
+
/**
|
|
11477
|
+
* Sets or retrieves the MIME type of the object.
|
|
11478
|
+
*
|
|
11479
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/type)
|
|
11480
|
+
*/
|
|
11434
11481
|
type: string;
|
|
11435
11482
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
11436
11483
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -12454,6 +12501,7 @@ declare var HTMLQuoteElement: {
|
|
|
12454
12501
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement)
|
|
12455
12502
|
*/
|
|
12456
12503
|
interface HTMLScriptElement extends HTMLElement {
|
|
12504
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/async) */
|
|
12457
12505
|
async: boolean;
|
|
12458
12506
|
/**
|
|
12459
12507
|
* Sets or retrieves the character set used to encode the object.
|
|
@@ -12462,28 +12510,47 @@ interface HTMLScriptElement extends HTMLElement {
|
|
|
12462
12510
|
charset: string;
|
|
12463
12511
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/crossOrigin) */
|
|
12464
12512
|
crossOrigin: string | null;
|
|
12465
|
-
/**
|
|
12513
|
+
/**
|
|
12514
|
+
* Sets or retrieves the status of the script.
|
|
12515
|
+
*
|
|
12516
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/defer)
|
|
12517
|
+
*/
|
|
12466
12518
|
defer: boolean;
|
|
12467
12519
|
/**
|
|
12468
12520
|
* Sets or retrieves the event for which the script is written.
|
|
12469
12521
|
* @deprecated
|
|
12470
12522
|
*/
|
|
12471
12523
|
event: string;
|
|
12524
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/fetchPriority) */
|
|
12472
12525
|
fetchPriority: string;
|
|
12473
12526
|
/**
|
|
12474
12527
|
* Sets or retrieves the object that is bound to the event script.
|
|
12475
12528
|
* @deprecated
|
|
12476
12529
|
*/
|
|
12477
12530
|
htmlFor: string;
|
|
12531
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/integrity) */
|
|
12478
12532
|
integrity: string;
|
|
12533
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/noModule) */
|
|
12479
12534
|
noModule: boolean;
|
|
12480
12535
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/referrerPolicy) */
|
|
12481
12536
|
referrerPolicy: string;
|
|
12482
|
-
/**
|
|
12537
|
+
/**
|
|
12538
|
+
* Retrieves the URL to an external file that contains the source code or data.
|
|
12539
|
+
*
|
|
12540
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/src)
|
|
12541
|
+
*/
|
|
12483
12542
|
src: string;
|
|
12484
|
-
/**
|
|
12543
|
+
/**
|
|
12544
|
+
* Retrieves or sets the text of the object as a string.
|
|
12545
|
+
*
|
|
12546
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/text)
|
|
12547
|
+
*/
|
|
12485
12548
|
text: string;
|
|
12486
|
-
/**
|
|
12549
|
+
/**
|
|
12550
|
+
* Sets or retrieves the MIME type for the associated scripting engine.
|
|
12551
|
+
*
|
|
12552
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/type)
|
|
12553
|
+
*/
|
|
12487
12554
|
type: string;
|
|
12488
12555
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
12489
12556
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -13293,6 +13360,11 @@ interface HTMLTemplateElement extends HTMLElement {
|
|
|
13293
13360
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/content)
|
|
13294
13361
|
*/
|
|
13295
13362
|
readonly content: DocumentFragment;
|
|
13363
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable) */
|
|
13364
|
+
shadowRootClonable: boolean;
|
|
13365
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootDelegatesFocus) */
|
|
13366
|
+
shadowRootDelegatesFocus: boolean;
|
|
13367
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootMode) */
|
|
13296
13368
|
shadowRootMode: string;
|
|
13297
13369
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
13298
13370
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -14479,11 +14551,6 @@ declare var ImageData: {
|
|
|
14479
14551
|
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
|
|
14480
14552
|
};
|
|
14481
14553
|
|
|
14482
|
-
interface InnerHTML {
|
|
14483
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */
|
|
14484
|
-
innerHTML: string;
|
|
14485
|
-
}
|
|
14486
|
-
|
|
14487
14554
|
/**
|
|
14488
14555
|
* Available only in secure contexts.
|
|
14489
14556
|
*
|
|
@@ -16872,8 +16939,6 @@ declare var OffscreenCanvas: {
|
|
|
16872
16939
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */
|
|
16873
16940
|
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
|
|
16874
16941
|
readonly canvas: OffscreenCanvas;
|
|
16875
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */
|
|
16876
|
-
commit(): void;
|
|
16877
16942
|
}
|
|
16878
16943
|
|
|
16879
16944
|
declare var OffscreenCanvasRenderingContext2D: {
|
|
@@ -18473,6 +18538,7 @@ declare var RTCPeerConnectionIceEvent: {
|
|
|
18473
18538
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver)
|
|
18474
18539
|
*/
|
|
18475
18540
|
interface RTCRtpReceiver {
|
|
18541
|
+
jitterBufferTarget: DOMHighResTimeStamp | null;
|
|
18476
18542
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/track) */
|
|
18477
18543
|
readonly track: MediaStreamTrack;
|
|
18478
18544
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transform) */
|
|
@@ -18551,7 +18617,7 @@ interface RTCRtpTransceiver {
|
|
|
18551
18617
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/sender) */
|
|
18552
18618
|
readonly sender: RTCRtpSender;
|
|
18553
18619
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */
|
|
18554
|
-
setCodecPreferences(codecs:
|
|
18620
|
+
setCodecPreferences(codecs: RTCRtpCodec[]): void;
|
|
18555
18621
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/stop) */
|
|
18556
18622
|
stop(): void;
|
|
18557
18623
|
}
|
|
@@ -18671,7 +18737,7 @@ interface Range extends AbstractRange {
|
|
|
18671
18737
|
*/
|
|
18672
18738
|
comparePoint(node: Node, offset: number): number;
|
|
18673
18739
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/createContextualFragment) */
|
|
18674
|
-
createContextualFragment(
|
|
18740
|
+
createContextualFragment(string: string): DocumentFragment;
|
|
18675
18741
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/deleteContents) */
|
|
18676
18742
|
deleteContents(): void;
|
|
18677
18743
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/detach) */
|
|
@@ -21345,6 +21411,7 @@ interface Selection {
|
|
|
21345
21411
|
readonly anchorNode: Node | null;
|
|
21346
21412
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorOffset) */
|
|
21347
21413
|
readonly anchorOffset: number;
|
|
21414
|
+
readonly direction: string;
|
|
21348
21415
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusNode) */
|
|
21349
21416
|
readonly focusNode: Node | null;
|
|
21350
21417
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusOffset) */
|
|
@@ -21517,13 +21584,15 @@ interface ShadowRootEventMap {
|
|
|
21517
21584
|
}
|
|
21518
21585
|
|
|
21519
21586
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot) */
|
|
21520
|
-
interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot
|
|
21587
|
+
interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
|
|
21521
21588
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/clonable) */
|
|
21522
21589
|
readonly clonable: boolean;
|
|
21523
21590
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus) */
|
|
21524
21591
|
readonly delegatesFocus: boolean;
|
|
21525
21592
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host) */
|
|
21526
21593
|
readonly host: Element;
|
|
21594
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML) */
|
|
21595
|
+
innerHTML: string;
|
|
21527
21596
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/mode) */
|
|
21528
21597
|
readonly mode: ShadowRootMode;
|
|
21529
21598
|
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
|
|
@@ -22270,6 +22339,16 @@ declare var TextEncoderStream: {
|
|
|
22270
22339
|
new(): TextEncoderStream;
|
|
22271
22340
|
};
|
|
22272
22341
|
|
|
22342
|
+
interface TextEvent extends UIEvent {
|
|
22343
|
+
readonly data: string;
|
|
22344
|
+
initTextEvent(type: string, bubbles?: boolean, cancelable?: boolean, view?: Window | null, data?: string): void;
|
|
22345
|
+
}
|
|
22346
|
+
|
|
22347
|
+
declare var TextEvent: {
|
|
22348
|
+
prototype: TextEvent;
|
|
22349
|
+
new(): TextEvent;
|
|
22350
|
+
};
|
|
22351
|
+
|
|
22273
22352
|
/**
|
|
22274
22353
|
* The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.
|
|
22275
22354
|
*
|
|
@@ -27831,6 +27910,8 @@ declare var onchange: ((this: Window, ev: Event) => any) | null;
|
|
|
27831
27910
|
declare var onclick: ((this: Window, ev: MouseEvent) => any) | null;
|
|
27832
27911
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
|
|
27833
27912
|
declare var onclose: ((this: Window, ev: Event) => any) | null;
|
|
27913
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/webglcontextlost_event) */
|
|
27914
|
+
declare var oncontextlost: ((this: Window, ev: Event) => any) | null;
|
|
27834
27915
|
/**
|
|
27835
27916
|
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
|
|
27836
27917
|
* @param ev The mouse event.
|
|
@@ -27838,6 +27919,8 @@ declare var onclose: ((this: Window, ev: Event) => any) | null;
|
|
|
27838
27919
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event)
|
|
27839
27920
|
*/
|
|
27840
27921
|
declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;
|
|
27922
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event) */
|
|
27923
|
+
declare var oncontextrestored: ((this: Window, ev: Event) => any) | null;
|
|
27841
27924
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */
|
|
27842
27925
|
declare var oncopy: ((this: Window, ev: ClipboardEvent) => any) | null;
|
|
27843
27926
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */
|
|
@@ -28430,7 +28513,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
28430
28513
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
28431
28514
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
28432
28515
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
28433
|
-
type GamepadHapticEffectType = "dual-rumble";
|
|
28516
|
+
type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
|
|
28434
28517
|
type GamepadHapticsResult = "complete" | "preempted";
|
|
28435
28518
|
type GamepadMappingType = "" | "standard" | "xr-standard";
|
|
28436
28519
|
type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
|
package/iterable.d.ts
CHANGED
|
@@ -248,7 +248,7 @@ interface PluginArray {
|
|
|
248
248
|
|
|
249
249
|
interface RTCRtpTransceiver {
|
|
250
250
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */
|
|
251
|
-
setCodecPreferences(codecs: Iterable<
|
|
251
|
+
setCodecPreferences(codecs: Iterable<RTCRtpCodec>): void;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
interface RTCStatsReport extends ReadonlyMap<string, any> {
|