@types/web 0.0.51 → 0.0.52

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.51 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.51.
50
+ You can read what changed in version 0.0.52 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.52.
package/index.d.ts CHANGED
@@ -2766,6 +2766,7 @@ interface CSSStyleDeclaration {
2766
2766
  columns: string;
2767
2767
  contain: string;
2768
2768
  content: string;
2769
+ contentVisibility: string;
2769
2770
  counterIncrement: string;
2770
2771
  counterReset: string;
2771
2772
  counterSet: string;
@@ -4948,6 +4949,15 @@ declare var Event: {
4948
4949
  readonly NONE: number;
4949
4950
  };
4950
4951
 
4952
+ interface EventCounts {
4953
+ forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void;
4954
+ }
4955
+
4956
+ declare var EventCounts: {
4957
+ prototype: EventCounts;
4958
+ new(): EventCounts;
4959
+ };
4960
+
4951
4961
  interface EventListener {
4952
4962
  (evt: Event): void;
4953
4963
  }
@@ -6141,14 +6151,29 @@ declare var HTMLDetailsElement: {
6141
6151
  new(): HTMLDetailsElement;
6142
6152
  };
6143
6153
 
6144
- /** @deprecated this is not available in most browsers */
6145
6154
  interface HTMLDialogElement extends HTMLElement {
6155
+ open: boolean;
6156
+ returnValue: string;
6157
+ /**
6158
+ * Closes the dialog element.
6159
+ *
6160
+ * The argument, if provided, provides a return value.
6161
+ */
6162
+ close(returnValue?: string): void;
6163
+ /** Displays the dialog element. */
6164
+ show(): void;
6165
+ showModal(): void;
6146
6166
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
6147
6167
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
6148
6168
  removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
6149
6169
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
6150
6170
  }
6151
6171
 
6172
+ declare var HTMLDialogElement: {
6173
+ prototype: HTMLDialogElement;
6174
+ new(): HTMLDialogElement;
6175
+ };
6176
+
6152
6177
  /** @deprecated */
6153
6178
  interface HTMLDirectoryElement extends HTMLElement {
6154
6179
  /** @deprecated */
@@ -10238,6 +10263,7 @@ interface PerformanceEventMap {
10238
10263
 
10239
10264
  /** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */
10240
10265
  interface Performance extends EventTarget {
10266
+ readonly eventCounts: EventCounts;
10241
10267
  /** @deprecated */
10242
10268
  readonly navigation: PerformanceNavigation;
10243
10269
  onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
package/iterable.d.ts CHANGED
@@ -49,6 +49,9 @@ interface DataTransferItemList {
49
49
  [Symbol.iterator](): IterableIterator<DataTransferItem>;
50
50
  }
51
51
 
52
+ interface EventCounts extends ReadonlyMap<string, number> {
53
+ }
54
+
52
55
  interface FileList {
53
56
  [Symbol.iterator](): IterableIterator<File>;
54
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.51",
3
+ "version": "0.0.52",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "MIT",
6
6
  "contributors": [],