@types/web 0.0.238 → 0.0.240

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,7 +4,7 @@ This module contains the DOM types for the majority of the web APIs used in a we
4
4
 
5
5
  The APIs inside `@types/web` are [generated from](https://github.com/microsoft/TypeScript-DOM-lib-generator/) the specifications for CSS, HTML and JavaScript. Given the size and state of constant change in web browsers, `@types/web` only has APIs which have passed a certain level of standardization and are available in at least two of the most popular browser engines.
6
6
 
7
- `@types/web` is also included inside TypeScript, available as `dom` in the [`lib`](https://www.typescriptlang.org/tsconfig#lib) section and included in projects by default. By using `@types/web` you can lock your the web APIs used in your projects, easing the process of updating TypeScript and offering more control in your environment.
7
+ `@types/web` is also included inside TypeScript, available as `dom` in the [`lib`](https://www.typescriptlang.org/tsconfig#lib) section and included in projects by default. By using `@types/web` you can lock the web APIs used in your projects, easing the process of updating TypeScript and offering more control in your environment.
8
8
 
9
9
  ## Installation
10
10
 
@@ -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.238 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.238.
50
+ You can read what changed in version 0.0.240 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.240.
package/index.d.ts CHANGED
@@ -3214,6 +3214,9 @@ interface Attr extends Node {
3214
3214
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value)
3215
3215
  */
3216
3216
  value: string;
3217
+ /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
3218
+ get textContent(): string;
3219
+ set textContent(value: string | null);
3217
3220
  }
3218
3221
 
3219
3222
  declare var Attr: {
@@ -5082,7 +5085,7 @@ declare var CSSMathClamp: {
5082
5085
  };
5083
5086
 
5084
5087
  /**
5085
- * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / <value>).` It inherits properties and methods from its parent CSSNumericValue.
5088
+ * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / <value>)`.
5086
5089
  *
5087
5090
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert)
5088
5091
  */
@@ -6624,6 +6627,7 @@ interface CSSStyleDeclaration {
6624
6627
  vectorEffect: string;
6625
6628
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */
6626
6629
  verticalAlign: string;
6630
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-class) */
6627
6631
  viewTransitionClass: string;
6628
6632
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */
6629
6633
  viewTransitionName: string;
@@ -7913,6 +7917,9 @@ interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {
7913
7917
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData)
7914
7918
  */
7915
7919
  substringData(offset: number, count: number): string;
7920
+ /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
7921
+ get textContent(): string;
7922
+ set textContent(value: string | null);
7916
7923
  }
7917
7924
 
7918
7925
  declare var CharacterData: {
@@ -8282,6 +8289,38 @@ declare var CookieStore: {
8282
8289
  new(): CookieStore;
8283
8290
  };
8284
8291
 
8292
+ /**
8293
+ * The **`CookieStoreManager`** interface of the Cookie Store API allows service workers to subscribe to cookie change events.
8294
+ * Available only in secure contexts.
8295
+ *
8296
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager)
8297
+ */
8298
+ interface CookieStoreManager {
8299
+ /**
8300
+ * The **`getSubscriptions()`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration.
8301
+ *
8302
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions)
8303
+ */
8304
+ getSubscriptions(): Promise<CookieStoreGetOptions[]>;
8305
+ /**
8306
+ * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
8307
+ *
8308
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
8309
+ */
8310
+ subscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
8311
+ /**
8312
+ * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
8313
+ *
8314
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
8315
+ */
8316
+ unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
8317
+ }
8318
+
8319
+ declare var CookieStoreManager: {
8320
+ prototype: CookieStoreManager;
8321
+ new(): CookieStoreManager;
8322
+ };
8323
+
8285
8324
  /**
8286
8325
  * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams.
8287
8326
  *
@@ -10335,6 +10374,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
10335
10374
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln)
10336
10375
  */
10337
10376
  writeln(...text: string[]): void;
10377
+ /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
10378
+ get textContent(): null;
10338
10379
  addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
10339
10380
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
10340
10381
  removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -10345,7 +10386,7 @@ declare var Document: {
10345
10386
  prototype: Document;
10346
10387
  new(): Document;
10347
10388
  /**
10348
- * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse a string of HTML, which may contain declarative shadow roots, in order to create a new Document instance.
10389
+ * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse an HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance.
10349
10390
  *
10350
10391
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static)
10351
10392
  */
@@ -10360,6 +10401,9 @@ declare var Document: {
10360
10401
  interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
10361
10402
  readonly ownerDocument: Document;
10362
10403
  getElementById(elementId: string): HTMLElement | null;
10404
+ /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
10405
+ get textContent(): string;
10406
+ set textContent(value: string | null);
10363
10407
  }
10364
10408
 
10365
10409
  declare var DocumentFragment: {
@@ -10436,6 +10480,8 @@ interface DocumentType extends Node, ChildNode {
10436
10480
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId)
10437
10481
  */
10438
10482
  readonly systemId: string;
10483
+ /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
10484
+ get textContent(): null;
10439
10485
  }
10440
10486
 
10441
10487
  declare var DocumentType: {
@@ -10694,7 +10740,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
10694
10740
  */
10695
10741
  id: string;
10696
10742
  /**
10697
- * The Element property **`innerHTML`** gets or sets the HTML or XML markup contained within the element.
10743
+ * The **`innerHTML`** property of the Element interface gets or sets the HTML or XML markup contained within the element.
10698
10744
  *
10699
10745
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML)
10700
10746
  */
@@ -11014,7 +11060,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
11014
11060
  */
11015
11061
  setAttributeNodeNS(attr: Attr): Attr | null;
11016
11062
  /**
11017
- * The **`setHTMLUnsafe()`** method of the Element interface is used to parse a string of HTML into a DocumentFragment, which then replaces the element's subtree in the DOM.
11063
+ * The **`setHTMLUnsafe()`** method of the Element interface is used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
11018
11064
  *
11019
11065
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe)
11020
11066
  */
@@ -11037,6 +11083,9 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
11037
11083
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)
11038
11084
  */
11039
11085
  webkitMatchesSelector(selectors: string): boolean;
11086
+ /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
11087
+ get textContent(): string;
11088
+ set textContent(value: string | null);
11040
11089
  addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
11041
11090
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
11042
11091
  removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -12637,6 +12686,7 @@ interface GlobalEventHandlersEventMap {
12637
12686
  "pointermove": PointerEvent;
12638
12687
  "pointerout": PointerEvent;
12639
12688
  "pointerover": PointerEvent;
12689
+ "pointerrawupdate": Event;
12640
12690
  "pointerup": PointerEvent;
12641
12691
  "progress": ProgressEvent;
12642
12692
  "ratechange": Event;
@@ -12808,6 +12858,12 @@ interface GlobalEventHandlers {
12808
12858
  onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
12809
12859
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */
12810
12860
  onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
12861
+ /**
12862
+ * Available only in secure contexts.
12863
+ *
12864
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerrawupdate_event)
12865
+ */
12866
+ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
12811
12867
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */
12812
12868
  onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
12813
12869
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */
@@ -17396,14 +17452,14 @@ interface HTMLTextAreaElement extends HTMLElement {
17396
17452
  */
17397
17453
  setCustomValidity(error: string): void;
17398
17454
  /**
17399
- * The **`setRangeText()`** method of the HTMLTextAreaElement interface replaces a range of text in an textarea element with new text passed as the argument.
17455
+ * The **`setRangeText()`** method of the HTMLTextAreaElement interface replaces a range of text in a textarea element with new text passed as the argument.
17400
17456
  *
17401
17457
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setRangeText)
17402
17458
  */
17403
17459
  setRangeText(replacement: string): void;
17404
17460
  setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
17405
17461
  /**
17406
- * The **`setSelectionRange()`** method of the HTMLTextAreaElement interface sets the start and end positions of the current text selection, and optionally the direction, in an textarea element.
17462
+ * The **`setSelectionRange()`** method of the HTMLTextAreaElement interface sets the start and end positions of the current text selection, and optionally the direction, in a textarea element.
17407
17463
  *
17408
17464
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setSelectionRange)
17409
17465
  */
@@ -24099,7 +24155,7 @@ declare var ProcessingInstruction: {
24099
24155
  };
24100
24156
 
24101
24157
  /**
24102
- * The **`ProgressEvent`** interface represents events measuring progress of an underlying process, like an HTTP request (for an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link).
24158
+ * The **`ProgressEvent`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link).
24103
24159
  *
24104
24160
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)
24105
24161
  */
@@ -24111,14 +24167,14 @@ interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
24111
24167
  */
24112
24168
  readonly lengthComputable: boolean;
24113
24169
  /**
24114
- * The **`ProgressEvent.loaded`** read-only property is a 64-bit unsigned integer indicating the size, in bytes, of the data already transmitted or processed.
24170
+ * The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed.
24115
24171
  *
24116
24172
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded)
24117
24173
  */
24118
24174
  readonly loaded: number;
24119
24175
  readonly target: T | null;
24120
24176
  /**
24121
- * The **`ProgressEvent.total`** read-only property is a 64-bit unsigned integer indicating the total size, in bytes, of the data being transmitted or processed.
24177
+ * The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed.
24122
24178
  *
24123
24179
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total)
24124
24180
  */
@@ -30572,6 +30628,12 @@ interface ServiceWorkerRegistration extends EventTarget {
30572
30628
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active)
30573
30629
  */
30574
30630
  readonly active: ServiceWorker | null;
30631
+ /**
30632
+ * The **`cookies`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker.
30633
+ *
30634
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies)
30635
+ */
30636
+ readonly cookies: CookieStoreManager;
30575
30637
  /**
30576
30638
  * The **`installing`** read-only property of the initially set to `null`.
30577
30639
  *
@@ -30674,7 +30736,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
30674
30736
  */
30675
30737
  readonly host: Element;
30676
30738
  /**
30677
- * The **`innerHTML`** property of the ShadowRoot interface sets or returns a reference to the DOM tree inside the `ShadowRoot`.
30739
+ * The **`innerHTML`** property of the ShadowRoot interface sets gets or sets the HTML markup to the DOM tree inside the `ShadowRoot`.
30678
30740
  *
30679
30741
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML)
30680
30742
  */
@@ -30705,7 +30767,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
30705
30767
  */
30706
30768
  getHTML(options?: GetHTMLOptions): string;
30707
30769
  /**
30708
- * The **`setHTMLUnsafe()`** method of the ShadowRoot interface is used to parse a string of HTML into a DocumentFragment, which then replaces the element's subtree in the DOM.
30770
+ * The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM.
30709
30771
  *
30710
30772
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe)
30711
30773
  */
@@ -38896,6 +38958,12 @@ declare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null;
38896
38958
  declare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null;
38897
38959
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */
38898
38960
  declare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null;
38961
+ /**
38962
+ * Available only in secure contexts.
38963
+ *
38964
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerrawupdate_event)
38965
+ */
38966
+ declare var onpointerrawupdate: ((this: Window, ev: Event) => any) | null;
38899
38967
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */
38900
38968
  declare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;
38901
38969
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */
package/iterable.d.ts CHANGED
@@ -81,6 +81,21 @@ interface CanvasPathDrawingStyles {
81
81
  setLineDash(segments: Iterable<number>): void;
82
82
  }
83
83
 
84
+ interface CookieStoreManager {
85
+ /**
86
+ * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
87
+ *
88
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
89
+ */
90
+ subscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
91
+ /**
92
+ * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
93
+ *
94
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
95
+ */
96
+ unsubscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
97
+ }
98
+
84
99
  interface CustomStateSet extends Set<string> {
85
100
  }
86
101
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.238",
3
+ "version": "0.0.240",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -3214,6 +3214,9 @@ interface Attr extends Node {
3214
3214
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value)
3215
3215
  */
3216
3216
  value: string;
3217
+ /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
3218
+ get textContent(): string;
3219
+ set textContent(value: string | null);
3217
3220
  }
3218
3221
 
3219
3222
  declare var Attr: {
@@ -5079,7 +5082,7 @@ declare var CSSMathClamp: {
5079
5082
  };
5080
5083
 
5081
5084
  /**
5082
- * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / <value>).` It inherits properties and methods from its parent CSSNumericValue.
5085
+ * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / <value>)`.
5083
5086
  *
5084
5087
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert)
5085
5088
  */
@@ -6618,6 +6621,7 @@ interface CSSStyleDeclaration {
6618
6621
  vectorEffect: string;
6619
6622
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */
6620
6623
  verticalAlign: string;
6624
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-class) */
6621
6625
  viewTransitionClass: string;
6622
6626
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */
6623
6627
  viewTransitionName: string;
@@ -7906,6 +7910,9 @@ interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {
7906
7910
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData)
7907
7911
  */
7908
7912
  substringData(offset: number, count: number): string;
7913
+ /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
7914
+ get textContent(): string;
7915
+ set textContent(value: string | null);
7909
7916
  }
7910
7917
 
7911
7918
  declare var CharacterData: {
@@ -8275,6 +8282,38 @@ declare var CookieStore: {
8275
8282
  new(): CookieStore;
8276
8283
  };
8277
8284
 
8285
+ /**
8286
+ * The **`CookieStoreManager`** interface of the Cookie Store API allows service workers to subscribe to cookie change events.
8287
+ * Available only in secure contexts.
8288
+ *
8289
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager)
8290
+ */
8291
+ interface CookieStoreManager {
8292
+ /**
8293
+ * The **`getSubscriptions()`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration.
8294
+ *
8295
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions)
8296
+ */
8297
+ getSubscriptions(): Promise<CookieStoreGetOptions[]>;
8298
+ /**
8299
+ * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
8300
+ *
8301
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
8302
+ */
8303
+ subscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
8304
+ /**
8305
+ * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
8306
+ *
8307
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
8308
+ */
8309
+ unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
8310
+ }
8311
+
8312
+ declare var CookieStoreManager: {
8313
+ prototype: CookieStoreManager;
8314
+ new(): CookieStoreManager;
8315
+ };
8316
+
8278
8317
  /**
8279
8318
  * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams.
8280
8319
  *
@@ -10328,6 +10367,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
10328
10367
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln)
10329
10368
  */
10330
10369
  writeln(...text: string[]): void;
10370
+ /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
10371
+ get textContent(): null;
10331
10372
  addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
10332
10373
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
10333
10374
  removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -10338,7 +10379,7 @@ declare var Document: {
10338
10379
  prototype: Document;
10339
10380
  new(): Document;
10340
10381
  /**
10341
- * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse a string of HTML, which may contain declarative shadow roots, in order to create a new Document instance.
10382
+ * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse an HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance.
10342
10383
  *
10343
10384
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static)
10344
10385
  */
@@ -10353,6 +10394,9 @@ declare var Document: {
10353
10394
  interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
10354
10395
  readonly ownerDocument: Document;
10355
10396
  getElementById(elementId: string): HTMLElement | null;
10397
+ /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
10398
+ get textContent(): string;
10399
+ set textContent(value: string | null);
10356
10400
  }
10357
10401
 
10358
10402
  declare var DocumentFragment: {
@@ -10429,6 +10473,8 @@ interface DocumentType extends Node, ChildNode {
10429
10473
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId)
10430
10474
  */
10431
10475
  readonly systemId: string;
10476
+ /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
10477
+ get textContent(): null;
10432
10478
  }
10433
10479
 
10434
10480
  declare var DocumentType: {
@@ -10686,7 +10732,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
10686
10732
  */
10687
10733
  id: string;
10688
10734
  /**
10689
- * The Element property **`innerHTML`** gets or sets the HTML or XML markup contained within the element.
10735
+ * The **`innerHTML`** property of the Element interface gets or sets the HTML or XML markup contained within the element.
10690
10736
  *
10691
10737
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML)
10692
10738
  */
@@ -11005,7 +11051,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
11005
11051
  */
11006
11052
  setAttributeNodeNS(attr: Attr): Attr | null;
11007
11053
  /**
11008
- * The **`setHTMLUnsafe()`** method of the Element interface is used to parse a string of HTML into a DocumentFragment, which then replaces the element's subtree in the DOM.
11054
+ * The **`setHTMLUnsafe()`** method of the Element interface is used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
11009
11055
  *
11010
11056
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe)
11011
11057
  */
@@ -11028,6 +11074,9 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
11028
11074
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)
11029
11075
  */
11030
11076
  webkitMatchesSelector(selectors: string): boolean;
11077
+ /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
11078
+ get textContent(): string;
11079
+ set textContent(value: string | null);
11031
11080
  addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
11032
11081
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
11033
11082
  removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -12627,6 +12676,7 @@ interface GlobalEventHandlersEventMap {
12627
12676
  "pointermove": PointerEvent;
12628
12677
  "pointerout": PointerEvent;
12629
12678
  "pointerover": PointerEvent;
12679
+ "pointerrawupdate": Event;
12630
12680
  "pointerup": PointerEvent;
12631
12681
  "progress": ProgressEvent;
12632
12682
  "ratechange": Event;
@@ -12798,6 +12848,12 @@ interface GlobalEventHandlers {
12798
12848
  onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
12799
12849
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */
12800
12850
  onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
12851
+ /**
12852
+ * Available only in secure contexts.
12853
+ *
12854
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerrawupdate_event)
12855
+ */
12856
+ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
12801
12857
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */
12802
12858
  onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
12803
12859
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */
@@ -17376,14 +17432,14 @@ interface HTMLTextAreaElement extends HTMLElement {
17376
17432
  */
17377
17433
  setCustomValidity(error: string): void;
17378
17434
  /**
17379
- * The **`setRangeText()`** method of the HTMLTextAreaElement interface replaces a range of text in an textarea element with new text passed as the argument.
17435
+ * The **`setRangeText()`** method of the HTMLTextAreaElement interface replaces a range of text in a textarea element with new text passed as the argument.
17380
17436
  *
17381
17437
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setRangeText)
17382
17438
  */
17383
17439
  setRangeText(replacement: string): void;
17384
17440
  setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
17385
17441
  /**
17386
- * The **`setSelectionRange()`** method of the HTMLTextAreaElement interface sets the start and end positions of the current text selection, and optionally the direction, in an textarea element.
17442
+ * The **`setSelectionRange()`** method of the HTMLTextAreaElement interface sets the start and end positions of the current text selection, and optionally the direction, in a textarea element.
17387
17443
  *
17388
17444
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setSelectionRange)
17389
17445
  */
@@ -24079,7 +24135,7 @@ declare var ProcessingInstruction: {
24079
24135
  };
24080
24136
 
24081
24137
  /**
24082
- * The **`ProgressEvent`** interface represents events measuring progress of an underlying process, like an HTTP request (for an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link).
24138
+ * The **`ProgressEvent`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link).
24083
24139
  *
24084
24140
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)
24085
24141
  */
@@ -24091,14 +24147,14 @@ interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
24091
24147
  */
24092
24148
  readonly lengthComputable: boolean;
24093
24149
  /**
24094
- * The **`ProgressEvent.loaded`** read-only property is a 64-bit unsigned integer indicating the size, in bytes, of the data already transmitted or processed.
24150
+ * The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed.
24095
24151
  *
24096
24152
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded)
24097
24153
  */
24098
24154
  readonly loaded: number;
24099
24155
  readonly target: T | null;
24100
24156
  /**
24101
- * The **`ProgressEvent.total`** read-only property is a 64-bit unsigned integer indicating the total size, in bytes, of the data being transmitted or processed.
24157
+ * The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed.
24102
24158
  *
24103
24159
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total)
24104
24160
  */
@@ -30551,6 +30607,12 @@ interface ServiceWorkerRegistration extends EventTarget {
30551
30607
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active)
30552
30608
  */
30553
30609
  readonly active: ServiceWorker | null;
30610
+ /**
30611
+ * The **`cookies`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker.
30612
+ *
30613
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies)
30614
+ */
30615
+ readonly cookies: CookieStoreManager;
30554
30616
  /**
30555
30617
  * The **`installing`** read-only property of the initially set to `null`.
30556
30618
  *
@@ -30653,7 +30715,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
30653
30715
  */
30654
30716
  readonly host: Element;
30655
30717
  /**
30656
- * The **`innerHTML`** property of the ShadowRoot interface sets or returns a reference to the DOM tree inside the `ShadowRoot`.
30718
+ * The **`innerHTML`** property of the ShadowRoot interface sets gets or sets the HTML markup to the DOM tree inside the `ShadowRoot`.
30657
30719
  *
30658
30720
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML)
30659
30721
  */
@@ -30684,7 +30746,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
30684
30746
  */
30685
30747
  getHTML(options?: GetHTMLOptions): string;
30686
30748
  /**
30687
- * The **`setHTMLUnsafe()`** method of the ShadowRoot interface is used to parse a string of HTML into a DocumentFragment, which then replaces the element's subtree in the DOM.
30749
+ * The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM.
30688
30750
  *
30689
30751
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe)
30690
30752
  */
@@ -38874,6 +38936,12 @@ declare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null;
38874
38936
  declare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null;
38875
38937
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */
38876
38938
  declare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null;
38939
+ /**
38940
+ * Available only in secure contexts.
38941
+ *
38942
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerrawupdate_event)
38943
+ */
38944
+ declare var onpointerrawupdate: ((this: Window, ev: Event) => any) | null;
38877
38945
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */
38878
38946
  declare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;
38879
38947
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */
@@ -81,6 +81,21 @@ interface CanvasPathDrawingStyles {
81
81
  setLineDash(segments: Iterable<number>): void;
82
82
  }
83
83
 
84
+ interface CookieStoreManager {
85
+ /**
86
+ * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
87
+ *
88
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
89
+ */
90
+ subscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
91
+ /**
92
+ * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
93
+ *
94
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
95
+ */
96
+ unsubscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
97
+ }
98
+
84
99
  interface CustomStateSet extends Set<string> {
85
100
  }
86
101
 
package/ts5.6/index.d.ts CHANGED
@@ -3214,6 +3214,9 @@ interface Attr extends Node {
3214
3214
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value)
3215
3215
  */
3216
3216
  value: string;
3217
+ /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
3218
+ get textContent(): string;
3219
+ set textContent(value: string | null);
3217
3220
  }
3218
3221
 
3219
3222
  declare var Attr: {
@@ -5082,7 +5085,7 @@ declare var CSSMathClamp: {
5082
5085
  };
5083
5086
 
5084
5087
  /**
5085
- * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / <value>).` It inherits properties and methods from its parent CSSNumericValue.
5088
+ * The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as `calc(1 / <value>)`.
5086
5089
  *
5087
5090
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert)
5088
5091
  */
@@ -6624,6 +6627,7 @@ interface CSSStyleDeclaration {
6624
6627
  vectorEffect: string;
6625
6628
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */
6626
6629
  verticalAlign: string;
6630
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-class) */
6627
6631
  viewTransitionClass: string;
6628
6632
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */
6629
6633
  viewTransitionName: string;
@@ -7913,6 +7917,9 @@ interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {
7913
7917
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData)
7914
7918
  */
7915
7919
  substringData(offset: number, count: number): string;
7920
+ /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
7921
+ get textContent(): string;
7922
+ set textContent(value: string | null);
7916
7923
  }
7917
7924
 
7918
7925
  declare var CharacterData: {
@@ -8282,6 +8289,38 @@ declare var CookieStore: {
8282
8289
  new(): CookieStore;
8283
8290
  };
8284
8291
 
8292
+ /**
8293
+ * The **`CookieStoreManager`** interface of the Cookie Store API allows service workers to subscribe to cookie change events.
8294
+ * Available only in secure contexts.
8295
+ *
8296
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager)
8297
+ */
8298
+ interface CookieStoreManager {
8299
+ /**
8300
+ * The **`getSubscriptions()`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration.
8301
+ *
8302
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions)
8303
+ */
8304
+ getSubscriptions(): Promise<CookieStoreGetOptions[]>;
8305
+ /**
8306
+ * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
8307
+ *
8308
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
8309
+ */
8310
+ subscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
8311
+ /**
8312
+ * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
8313
+ *
8314
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
8315
+ */
8316
+ unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
8317
+ }
8318
+
8319
+ declare var CookieStoreManager: {
8320
+ prototype: CookieStoreManager;
8321
+ new(): CookieStoreManager;
8322
+ };
8323
+
8285
8324
  /**
8286
8325
  * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams.
8287
8326
  *
@@ -10335,6 +10374,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
10335
10374
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln)
10336
10375
  */
10337
10376
  writeln(...text: string[]): void;
10377
+ /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
10378
+ get textContent(): null;
10338
10379
  addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
10339
10380
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
10340
10381
  removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -10345,7 +10386,7 @@ declare var Document: {
10345
10386
  prototype: Document;
10346
10387
  new(): Document;
10347
10388
  /**
10348
- * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse a string of HTML, which may contain declarative shadow roots, in order to create a new Document instance.
10389
+ * The **`parseHTMLUnsafe()`** static method of the Document object is used to parse an HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance.
10349
10390
  *
10350
10391
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static)
10351
10392
  */
@@ -10360,6 +10401,9 @@ declare var Document: {
10360
10401
  interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
10361
10402
  readonly ownerDocument: Document;
10362
10403
  getElementById(elementId: string): HTMLElement | null;
10404
+ /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
10405
+ get textContent(): string;
10406
+ set textContent(value: string | null);
10363
10407
  }
10364
10408
 
10365
10409
  declare var DocumentFragment: {
@@ -10436,6 +10480,8 @@ interface DocumentType extends Node, ChildNode {
10436
10480
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId)
10437
10481
  */
10438
10482
  readonly systemId: string;
10483
+ /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
10484
+ get textContent(): null;
10439
10485
  }
10440
10486
 
10441
10487
  declare var DocumentType: {
@@ -10694,7 +10740,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
10694
10740
  */
10695
10741
  id: string;
10696
10742
  /**
10697
- * The Element property **`innerHTML`** gets or sets the HTML or XML markup contained within the element.
10743
+ * The **`innerHTML`** property of the Element interface gets or sets the HTML or XML markup contained within the element.
10698
10744
  *
10699
10745
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML)
10700
10746
  */
@@ -11014,7 +11060,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
11014
11060
  */
11015
11061
  setAttributeNodeNS(attr: Attr): Attr | null;
11016
11062
  /**
11017
- * The **`setHTMLUnsafe()`** method of the Element interface is used to parse a string of HTML into a DocumentFragment, which then replaces the element's subtree in the DOM.
11063
+ * The **`setHTMLUnsafe()`** method of the Element interface is used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
11018
11064
  *
11019
11065
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe)
11020
11066
  */
@@ -11037,6 +11083,9 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
11037
11083
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)
11038
11084
  */
11039
11085
  webkitMatchesSelector(selectors: string): boolean;
11086
+ /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
11087
+ get textContent(): string;
11088
+ set textContent(value: string | null);
11040
11089
  addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
11041
11090
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
11042
11091
  removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -12637,6 +12686,7 @@ interface GlobalEventHandlersEventMap {
12637
12686
  "pointermove": PointerEvent;
12638
12687
  "pointerout": PointerEvent;
12639
12688
  "pointerover": PointerEvent;
12689
+ "pointerrawupdate": Event;
12640
12690
  "pointerup": PointerEvent;
12641
12691
  "progress": ProgressEvent;
12642
12692
  "ratechange": Event;
@@ -12808,6 +12858,12 @@ interface GlobalEventHandlers {
12808
12858
  onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
12809
12859
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */
12810
12860
  onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
12861
+ /**
12862
+ * Available only in secure contexts.
12863
+ *
12864
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerrawupdate_event)
12865
+ */
12866
+ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
12811
12867
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */
12812
12868
  onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
12813
12869
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */
@@ -17396,14 +17452,14 @@ interface HTMLTextAreaElement extends HTMLElement {
17396
17452
  */
17397
17453
  setCustomValidity(error: string): void;
17398
17454
  /**
17399
- * The **`setRangeText()`** method of the HTMLTextAreaElement interface replaces a range of text in an textarea element with new text passed as the argument.
17455
+ * The **`setRangeText()`** method of the HTMLTextAreaElement interface replaces a range of text in a textarea element with new text passed as the argument.
17400
17456
  *
17401
17457
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setRangeText)
17402
17458
  */
17403
17459
  setRangeText(replacement: string): void;
17404
17460
  setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
17405
17461
  /**
17406
- * The **`setSelectionRange()`** method of the HTMLTextAreaElement interface sets the start and end positions of the current text selection, and optionally the direction, in an textarea element.
17462
+ * The **`setSelectionRange()`** method of the HTMLTextAreaElement interface sets the start and end positions of the current text selection, and optionally the direction, in a textarea element.
17407
17463
  *
17408
17464
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setSelectionRange)
17409
17465
  */
@@ -24099,7 +24155,7 @@ declare var ProcessingInstruction: {
24099
24155
  };
24100
24156
 
24101
24157
  /**
24102
- * The **`ProgressEvent`** interface represents events measuring progress of an underlying process, like an HTTP request (for an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link).
24158
+ * The **`ProgressEvent`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an `XMLHttpRequest`, or the loading of the underlying resource of an img, audio, video, style or link).
24103
24159
  *
24104
24160
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)
24105
24161
  */
@@ -24111,14 +24167,14 @@ interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
24111
24167
  */
24112
24168
  readonly lengthComputable: boolean;
24113
24169
  /**
24114
- * The **`ProgressEvent.loaded`** read-only property is a 64-bit unsigned integer indicating the size, in bytes, of the data already transmitted or processed.
24170
+ * The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed.
24115
24171
  *
24116
24172
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded)
24117
24173
  */
24118
24174
  readonly loaded: number;
24119
24175
  readonly target: T | null;
24120
24176
  /**
24121
- * The **`ProgressEvent.total`** read-only property is a 64-bit unsigned integer indicating the total size, in bytes, of the data being transmitted or processed.
24177
+ * The **`ProgressEvent.total`** read-only property is a number indicating the total size of the data being transmitted or processed.
24122
24178
  *
24123
24179
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total)
24124
24180
  */
@@ -30572,6 +30628,12 @@ interface ServiceWorkerRegistration extends EventTarget {
30572
30628
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active)
30573
30629
  */
30574
30630
  readonly active: ServiceWorker | null;
30631
+ /**
30632
+ * The **`cookies`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker.
30633
+ *
30634
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies)
30635
+ */
30636
+ readonly cookies: CookieStoreManager;
30575
30637
  /**
30576
30638
  * The **`installing`** read-only property of the initially set to `null`.
30577
30639
  *
@@ -30674,7 +30736,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
30674
30736
  */
30675
30737
  readonly host: Element;
30676
30738
  /**
30677
- * The **`innerHTML`** property of the ShadowRoot interface sets or returns a reference to the DOM tree inside the `ShadowRoot`.
30739
+ * The **`innerHTML`** property of the ShadowRoot interface sets gets or sets the HTML markup to the DOM tree inside the `ShadowRoot`.
30678
30740
  *
30679
30741
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML)
30680
30742
  */
@@ -30705,7 +30767,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
30705
30767
  */
30706
30768
  getHTML(options?: GetHTMLOptions): string;
30707
30769
  /**
30708
- * The **`setHTMLUnsafe()`** method of the ShadowRoot interface is used to parse a string of HTML into a DocumentFragment, which then replaces the element's subtree in the DOM.
30770
+ * The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM.
30709
30771
  *
30710
30772
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe)
30711
30773
  */
@@ -38896,6 +38958,12 @@ declare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null;
38896
38958
  declare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null;
38897
38959
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */
38898
38960
  declare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null;
38961
+ /**
38962
+ * Available only in secure contexts.
38963
+ *
38964
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerrawupdate_event)
38965
+ */
38966
+ declare var onpointerrawupdate: ((this: Window, ev: Event) => any) | null;
38899
38967
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */
38900
38968
  declare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;
38901
38969
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */
@@ -81,6 +81,21 @@ interface CanvasPathDrawingStyles {
81
81
  setLineDash(segments: Iterable<number>): void;
82
82
  }
83
83
 
84
+ interface CookieStoreManager {
85
+ /**
86
+ * The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
87
+ *
88
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
89
+ */
90
+ subscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
91
+ /**
92
+ * The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
93
+ *
94
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
95
+ */
96
+ unsubscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
97
+ }
98
+
84
99
  interface CustomStateSet extends Set<string> {
85
100
  }
86
101