@types/web 0.0.221 → 0.0.223

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
@@ -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.221 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.221.
50
+ You can read what changed in version 0.0.223 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.223.
package/index.d.ts CHANGED
@@ -3739,6 +3739,43 @@ declare var CDATASection: {
3739
3739
  new(): CDATASection;
3740
3740
  };
3741
3741
 
3742
+ /**
3743
+ * The `CSPViolationReportBody` interface is an extension of the Reporting API that represents the body of a Content Security Policy (CSP) violation report.
3744
+ *
3745
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody)
3746
+ */
3747
+ interface CSPViolationReportBody extends ReportBody {
3748
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/blockedURL) */
3749
+ readonly blockedURL: string | null;
3750
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/columnNumber) */
3751
+ readonly columnNumber: number | null;
3752
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/disposition) */
3753
+ readonly disposition: SecurityPolicyViolationEventDisposition;
3754
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/documentURL) */
3755
+ readonly documentURL: string;
3756
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/effectiveDirective) */
3757
+ readonly effectiveDirective: string;
3758
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/lineNumber) */
3759
+ readonly lineNumber: number | null;
3760
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/originalPolicy) */
3761
+ readonly originalPolicy: string;
3762
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/referrer) */
3763
+ readonly referrer: string | null;
3764
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sample) */
3765
+ readonly sample: string | null;
3766
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sourceFile) */
3767
+ readonly sourceFile: string | null;
3768
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/statusCode) */
3769
+ readonly statusCode: number;
3770
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/toJSON) */
3771
+ toJSON(): any;
3772
+ }
3773
+
3774
+ declare var CSPViolationReportBody: {
3775
+ prototype: CSPViolationReportBody;
3776
+ new(): CSPViolationReportBody;
3777
+ };
3778
+
3742
3779
  /**
3743
3780
  * The **`CSSAnimation`** interface of the Web Animations API represents an Animation object.
3744
3781
  *
@@ -10057,7 +10094,7 @@ interface GlobalEventHandlersEventMap {
10057
10094
  "animationstart": AnimationEvent;
10058
10095
  "auxclick": PointerEvent;
10059
10096
  "beforeinput": InputEvent;
10060
- "beforetoggle": Event;
10097
+ "beforetoggle": ToggleEvent;
10061
10098
  "blur": FocusEvent;
10062
10099
  "cancel": Event;
10063
10100
  "canplay": Event;
@@ -10137,7 +10174,7 @@ interface GlobalEventHandlersEventMap {
10137
10174
  "submit": SubmitEvent;
10138
10175
  "suspend": Event;
10139
10176
  "timeupdate": Event;
10140
- "toggle": Event;
10177
+ "toggle": ToggleEvent;
10141
10178
  "touchcancel": TouchEvent;
10142
10179
  "touchend": TouchEvent;
10143
10180
  "touchmove": TouchEvent;
@@ -10176,7 +10213,7 @@ interface GlobalEventHandlers {
10176
10213
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */
10177
10214
  onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
10178
10215
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */
10179
- onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
10216
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
10180
10217
  /**
10181
10218
  * Fires when the object loses the input focus.
10182
10219
  * @param ev The focus event.
@@ -10537,7 +10574,7 @@ interface GlobalEventHandlers {
10537
10574
  */
10538
10575
  ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
10539
10576
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/toggle_event) */
10540
- ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
10577
+ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
10541
10578
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */
10542
10579
  ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
10543
10580
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */
@@ -12571,6 +12608,7 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
12571
12608
  hreflang: string;
12572
12609
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/imageSizes) */
12573
12610
  imageSizes: string;
12611
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/imageSrcset) */
12574
12612
  imageSrcset: string;
12575
12613
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/integrity) */
12576
12614
  integrity: string;
@@ -30129,7 +30167,7 @@ declare var onauxclick: ((this: Window, ev: PointerEvent) => any) | null;
30129
30167
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */
30130
30168
  declare var onbeforeinput: ((this: Window, ev: InputEvent) => any) | null;
30131
30169
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */
30132
- declare var onbeforetoggle: ((this: Window, ev: Event) => any) | null;
30170
+ declare var onbeforetoggle: ((this: Window, ev: ToggleEvent) => any) | null;
30133
30171
  /**
30134
30172
  * Fires when the object loses the input focus.
30135
30173
  * @param ev The focus event.
@@ -30490,7 +30528,7 @@ declare var onsuspend: ((this: Window, ev: Event) => any) | null;
30490
30528
  */
30491
30529
  declare var ontimeupdate: ((this: Window, ev: Event) => any) | null;
30492
30530
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/toggle_event) */
30493
- declare var ontoggle: ((this: Window, ev: Event) => any) | null;
30531
+ declare var ontoggle: ((this: Window, ev: ToggleEvent) => any) | null;
30494
30532
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */
30495
30533
  declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;
30496
30534
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.221",
3
+ "version": "0.0.223",
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
@@ -3739,6 +3739,43 @@ declare var CDATASection: {
3739
3739
  new(): CDATASection;
3740
3740
  };
3741
3741
 
3742
+ /**
3743
+ * The `CSPViolationReportBody` interface is an extension of the Reporting API that represents the body of a Content Security Policy (CSP) violation report.
3744
+ *
3745
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody)
3746
+ */
3747
+ interface CSPViolationReportBody extends ReportBody {
3748
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/blockedURL) */
3749
+ readonly blockedURL: string | null;
3750
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/columnNumber) */
3751
+ readonly columnNumber: number | null;
3752
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/disposition) */
3753
+ readonly disposition: SecurityPolicyViolationEventDisposition;
3754
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/documentURL) */
3755
+ readonly documentURL: string;
3756
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/effectiveDirective) */
3757
+ readonly effectiveDirective: string;
3758
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/lineNumber) */
3759
+ readonly lineNumber: number | null;
3760
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/originalPolicy) */
3761
+ readonly originalPolicy: string;
3762
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/referrer) */
3763
+ readonly referrer: string | null;
3764
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sample) */
3765
+ readonly sample: string | null;
3766
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sourceFile) */
3767
+ readonly sourceFile: string | null;
3768
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/statusCode) */
3769
+ readonly statusCode: number;
3770
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/toJSON) */
3771
+ toJSON(): any;
3772
+ }
3773
+
3774
+ declare var CSPViolationReportBody: {
3775
+ prototype: CSPViolationReportBody;
3776
+ new(): CSPViolationReportBody;
3777
+ };
3778
+
3742
3779
  /**
3743
3780
  * The **`CSSAnimation`** interface of the Web Animations API represents an Animation object.
3744
3781
  *
@@ -10047,7 +10084,7 @@ interface GlobalEventHandlersEventMap {
10047
10084
  "animationstart": AnimationEvent;
10048
10085
  "auxclick": PointerEvent;
10049
10086
  "beforeinput": InputEvent;
10050
- "beforetoggle": Event;
10087
+ "beforetoggle": ToggleEvent;
10051
10088
  "blur": FocusEvent;
10052
10089
  "cancel": Event;
10053
10090
  "canplay": Event;
@@ -10127,7 +10164,7 @@ interface GlobalEventHandlersEventMap {
10127
10164
  "submit": SubmitEvent;
10128
10165
  "suspend": Event;
10129
10166
  "timeupdate": Event;
10130
- "toggle": Event;
10167
+ "toggle": ToggleEvent;
10131
10168
  "touchcancel": TouchEvent;
10132
10169
  "touchend": TouchEvent;
10133
10170
  "touchmove": TouchEvent;
@@ -10166,7 +10203,7 @@ interface GlobalEventHandlers {
10166
10203
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */
10167
10204
  onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
10168
10205
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */
10169
- onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
10206
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
10170
10207
  /**
10171
10208
  * Fires when the object loses the input focus.
10172
10209
  * @param ev The focus event.
@@ -10527,7 +10564,7 @@ interface GlobalEventHandlers {
10527
10564
  */
10528
10565
  ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
10529
10566
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/toggle_event) */
10530
- ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
10567
+ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
10531
10568
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */
10532
10569
  ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
10533
10570
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */
@@ -12556,6 +12593,7 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
12556
12593
  hreflang: string;
12557
12594
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/imageSizes) */
12558
12595
  imageSizes: string;
12596
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/imageSrcset) */
12559
12597
  imageSrcset: string;
12560
12598
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/integrity) */
12561
12599
  integrity: string;
@@ -30107,7 +30145,7 @@ declare var onauxclick: ((this: Window, ev: PointerEvent) => any) | null;
30107
30145
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */
30108
30146
  declare var onbeforeinput: ((this: Window, ev: InputEvent) => any) | null;
30109
30147
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */
30110
- declare var onbeforetoggle: ((this: Window, ev: Event) => any) | null;
30148
+ declare var onbeforetoggle: ((this: Window, ev: ToggleEvent) => any) | null;
30111
30149
  /**
30112
30150
  * Fires when the object loses the input focus.
30113
30151
  * @param ev The focus event.
@@ -30468,7 +30506,7 @@ declare var onsuspend: ((this: Window, ev: Event) => any) | null;
30468
30506
  */
30469
30507
  declare var ontimeupdate: ((this: Window, ev: Event) => any) | null;
30470
30508
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/toggle_event) */
30471
- declare var ontoggle: ((this: Window, ev: Event) => any) | null;
30509
+ declare var ontoggle: ((this: Window, ev: ToggleEvent) => any) | null;
30472
30510
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */
30473
30511
  declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;
30474
30512
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */
package/ts5.6/index.d.ts CHANGED
@@ -3739,6 +3739,43 @@ declare var CDATASection: {
3739
3739
  new(): CDATASection;
3740
3740
  };
3741
3741
 
3742
+ /**
3743
+ * The `CSPViolationReportBody` interface is an extension of the Reporting API that represents the body of a Content Security Policy (CSP) violation report.
3744
+ *
3745
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody)
3746
+ */
3747
+ interface CSPViolationReportBody extends ReportBody {
3748
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/blockedURL) */
3749
+ readonly blockedURL: string | null;
3750
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/columnNumber) */
3751
+ readonly columnNumber: number | null;
3752
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/disposition) */
3753
+ readonly disposition: SecurityPolicyViolationEventDisposition;
3754
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/documentURL) */
3755
+ readonly documentURL: string;
3756
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/effectiveDirective) */
3757
+ readonly effectiveDirective: string;
3758
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/lineNumber) */
3759
+ readonly lineNumber: number | null;
3760
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/originalPolicy) */
3761
+ readonly originalPolicy: string;
3762
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/referrer) */
3763
+ readonly referrer: string | null;
3764
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sample) */
3765
+ readonly sample: string | null;
3766
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sourceFile) */
3767
+ readonly sourceFile: string | null;
3768
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/statusCode) */
3769
+ readonly statusCode: number;
3770
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/toJSON) */
3771
+ toJSON(): any;
3772
+ }
3773
+
3774
+ declare var CSPViolationReportBody: {
3775
+ prototype: CSPViolationReportBody;
3776
+ new(): CSPViolationReportBody;
3777
+ };
3778
+
3742
3779
  /**
3743
3780
  * The **`CSSAnimation`** interface of the Web Animations API represents an Animation object.
3744
3781
  *
@@ -10057,7 +10094,7 @@ interface GlobalEventHandlersEventMap {
10057
10094
  "animationstart": AnimationEvent;
10058
10095
  "auxclick": PointerEvent;
10059
10096
  "beforeinput": InputEvent;
10060
- "beforetoggle": Event;
10097
+ "beforetoggle": ToggleEvent;
10061
10098
  "blur": FocusEvent;
10062
10099
  "cancel": Event;
10063
10100
  "canplay": Event;
@@ -10137,7 +10174,7 @@ interface GlobalEventHandlersEventMap {
10137
10174
  "submit": SubmitEvent;
10138
10175
  "suspend": Event;
10139
10176
  "timeupdate": Event;
10140
- "toggle": Event;
10177
+ "toggle": ToggleEvent;
10141
10178
  "touchcancel": TouchEvent;
10142
10179
  "touchend": TouchEvent;
10143
10180
  "touchmove": TouchEvent;
@@ -10176,7 +10213,7 @@ interface GlobalEventHandlers {
10176
10213
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */
10177
10214
  onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
10178
10215
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */
10179
- onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
10216
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
10180
10217
  /**
10181
10218
  * Fires when the object loses the input focus.
10182
10219
  * @param ev The focus event.
@@ -10537,7 +10574,7 @@ interface GlobalEventHandlers {
10537
10574
  */
10538
10575
  ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
10539
10576
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/toggle_event) */
10540
- ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
10577
+ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
10541
10578
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */
10542
10579
  ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
10543
10580
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */
@@ -12571,6 +12608,7 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
12571
12608
  hreflang: string;
12572
12609
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/imageSizes) */
12573
12610
  imageSizes: string;
12611
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/imageSrcset) */
12574
12612
  imageSrcset: string;
12575
12613
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/integrity) */
12576
12614
  integrity: string;
@@ -30129,7 +30167,7 @@ declare var onauxclick: ((this: Window, ev: PointerEvent) => any) | null;
30129
30167
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */
30130
30168
  declare var onbeforeinput: ((this: Window, ev: InputEvent) => any) | null;
30131
30169
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */
30132
- declare var onbeforetoggle: ((this: Window, ev: Event) => any) | null;
30170
+ declare var onbeforetoggle: ((this: Window, ev: ToggleEvent) => any) | null;
30133
30171
  /**
30134
30172
  * Fires when the object loses the input focus.
30135
30173
  * @param ev The focus event.
@@ -30490,7 +30528,7 @@ declare var onsuspend: ((this: Window, ev: Event) => any) | null;
30490
30528
  */
30491
30529
  declare var ontimeupdate: ((this: Window, ev: Event) => any) | null;
30492
30530
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/toggle_event) */
30493
- declare var ontoggle: ((this: Window, ev: Event) => any) | null;
30531
+ declare var ontoggle: ((this: Window, ev: ToggleEvent) => any) | null;
30494
30532
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */
30495
30533
  declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;
30496
30534
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */