@types/web 0.0.353 → 0.0.354

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
@@ -49,4 +49,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
49
49
 
50
50
  ## Deploy Metadata
51
51
 
52
- You can read what changed in version 0.0.353 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.353.
52
+ You can read what changed in version 0.0.354 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.354.
package/index.d.ts CHANGED
@@ -1838,6 +1838,10 @@ interface PannerOptions extends AudioNodeOptions {
1838
1838
  rolloffFactor?: number;
1839
1839
  }
1840
1840
 
1841
+ interface ParseHTMLUnsafeOptions {
1842
+ sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
1843
+ }
1844
+
1841
1845
  interface PayerErrors {
1842
1846
  email?: string;
1843
1847
  name?: string;
@@ -2765,6 +2769,10 @@ interface SetHTMLOptions {
2765
2769
  sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
2766
2770
  }
2767
2771
 
2772
+ interface SetHTMLUnsafeOptions {
2773
+ sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
2774
+ }
2775
+
2768
2776
  interface ShadowRootInit {
2769
2777
  clonable?: boolean;
2770
2778
  customElementRegistry?: CustomElementRegistry | null;
@@ -13659,7 +13667,7 @@ declare var Document: {
13659
13667
  *
13660
13668
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static)
13661
13669
  */
13662
- parseHTMLUnsafe(html: string): Document;
13670
+ parseHTMLUnsafe(html: string, options?: ParseHTMLUnsafeOptions): Document;
13663
13671
  };
13664
13672
 
13665
13673
  /**
@@ -14429,7 +14437,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
14429
14437
  *
14430
14438
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe)
14431
14439
  */
14432
- setHTMLUnsafe(html: string): void;
14440
+ setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void;
14433
14441
  /**
14434
14442
  * The **`setPointerCapture()`** method of the Element interface is used to designate a specific element as the capture target of future pointer events. Subsequent events for the pointer will be targeted at the capture element until capture is released (via Element.releasePointerCapture() or the pointerup event is fired).
14435
14443
  *
@@ -36061,7 +36069,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
36061
36069
  *
36062
36070
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe)
36063
36071
  */
36064
- setHTMLUnsafe(html: string): void;
36072
+ setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void;
36065
36073
  addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
36066
36074
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
36067
36075
  removeEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.353",
3
+ "version": "0.0.354",
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
@@ -1835,6 +1835,10 @@ interface PannerOptions extends AudioNodeOptions {
1835
1835
  rolloffFactor?: number;
1836
1836
  }
1837
1837
 
1838
+ interface ParseHTMLUnsafeOptions {
1839
+ sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
1840
+ }
1841
+
1838
1842
  interface PayerErrors {
1839
1843
  email?: string;
1840
1844
  name?: string;
@@ -2762,6 +2766,10 @@ interface SetHTMLOptions {
2762
2766
  sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
2763
2767
  }
2764
2768
 
2769
+ interface SetHTMLUnsafeOptions {
2770
+ sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
2771
+ }
2772
+
2765
2773
  interface ShadowRootInit {
2766
2774
  clonable?: boolean;
2767
2775
  customElementRegistry?: CustomElementRegistry | null;
@@ -13648,7 +13656,7 @@ declare var Document: {
13648
13656
  *
13649
13657
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static)
13650
13658
  */
13651
- parseHTMLUnsafe(html: string): Document;
13659
+ parseHTMLUnsafe(html: string, options?: ParseHTMLUnsafeOptions): Document;
13652
13660
  };
13653
13661
 
13654
13662
  /**
@@ -14416,7 +14424,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
14416
14424
  *
14417
14425
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe)
14418
14426
  */
14419
- setHTMLUnsafe(html: string): void;
14427
+ setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void;
14420
14428
  /**
14421
14429
  * The **`setPointerCapture()`** method of the Element interface is used to designate a specific element as the capture target of future pointer events. Subsequent events for the pointer will be targeted at the capture element until capture is released (via Element.releasePointerCapture() or the pointerup event is fired).
14422
14430
  *
@@ -36036,7 +36044,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
36036
36044
  *
36037
36045
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe)
36038
36046
  */
36039
- setHTMLUnsafe(html: string): void;
36047
+ setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void;
36040
36048
  addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
36041
36049
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
36042
36050
  removeEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
package/ts5.6/index.d.ts CHANGED
@@ -1835,6 +1835,10 @@ interface PannerOptions extends AudioNodeOptions {
1835
1835
  rolloffFactor?: number;
1836
1836
  }
1837
1837
 
1838
+ interface ParseHTMLUnsafeOptions {
1839
+ sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
1840
+ }
1841
+
1838
1842
  interface PayerErrors {
1839
1843
  email?: string;
1840
1844
  name?: string;
@@ -2762,6 +2766,10 @@ interface SetHTMLOptions {
2762
2766
  sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
2763
2767
  }
2764
2768
 
2769
+ interface SetHTMLUnsafeOptions {
2770
+ sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
2771
+ }
2772
+
2765
2773
  interface ShadowRootInit {
2766
2774
  clonable?: boolean;
2767
2775
  customElementRegistry?: CustomElementRegistry | null;
@@ -13656,7 +13664,7 @@ declare var Document: {
13656
13664
  *
13657
13665
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static)
13658
13666
  */
13659
- parseHTMLUnsafe(html: string): Document;
13667
+ parseHTMLUnsafe(html: string, options?: ParseHTMLUnsafeOptions): Document;
13660
13668
  };
13661
13669
 
13662
13670
  /**
@@ -14426,7 +14434,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
14426
14434
  *
14427
14435
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe)
14428
14436
  */
14429
- setHTMLUnsafe(html: string): void;
14437
+ setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void;
14430
14438
  /**
14431
14439
  * The **`setPointerCapture()`** method of the Element interface is used to designate a specific element as the capture target of future pointer events. Subsequent events for the pointer will be targeted at the capture element until capture is released (via Element.releasePointerCapture() or the pointerup event is fired).
14432
14440
  *
@@ -36058,7 +36066,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
36058
36066
  *
36059
36067
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe)
36060
36068
  */
36061
- setHTMLUnsafe(html: string): void;
36069
+ setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void;
36062
36070
  addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
36063
36071
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
36064
36072
  removeEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
package/ts5.9/index.d.ts CHANGED
@@ -1835,6 +1835,10 @@ interface PannerOptions extends AudioNodeOptions {
1835
1835
  rolloffFactor?: number;
1836
1836
  }
1837
1837
 
1838
+ interface ParseHTMLUnsafeOptions {
1839
+ sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
1840
+ }
1841
+
1838
1842
  interface PayerErrors {
1839
1843
  email?: string;
1840
1844
  name?: string;
@@ -2762,6 +2766,10 @@ interface SetHTMLOptions {
2762
2766
  sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
2763
2767
  }
2764
2768
 
2769
+ interface SetHTMLUnsafeOptions {
2770
+ sanitizer?: Sanitizer | SanitizerConfig | SanitizerPresets;
2771
+ }
2772
+
2765
2773
  interface ShadowRootInit {
2766
2774
  clonable?: boolean;
2767
2775
  customElementRegistry?: CustomElementRegistry | null;
@@ -13656,7 +13664,7 @@ declare var Document: {
13656
13664
  *
13657
13665
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static)
13658
13666
  */
13659
- parseHTMLUnsafe(html: string): Document;
13667
+ parseHTMLUnsafe(html: string, options?: ParseHTMLUnsafeOptions): Document;
13660
13668
  };
13661
13669
 
13662
13670
  /**
@@ -14426,7 +14434,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
14426
14434
  *
14427
14435
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe)
14428
14436
  */
14429
- setHTMLUnsafe(html: string): void;
14437
+ setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void;
14430
14438
  /**
14431
14439
  * The **`setPointerCapture()`** method of the Element interface is used to designate a specific element as the capture target of future pointer events. Subsequent events for the pointer will be targeted at the capture element until capture is released (via Element.releasePointerCapture() or the pointerup event is fired).
14432
14440
  *
@@ -36058,7 +36066,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
36058
36066
  *
36059
36067
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe)
36060
36068
  */
36061
- setHTMLUnsafe(html: string): void;
36069
+ setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void;
36062
36070
  addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
36063
36071
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
36064
36072
  removeEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void;