@types/web 0.0.86 → 0.0.88

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.d.ts +34 -27
  3. 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.86 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.86.
50
+ You can read what changed in version 0.0.88 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.88.
package/index.d.ts CHANGED
@@ -2007,7 +2007,6 @@ interface ARIAMixin {
2007
2007
  ariaChecked: string | null;
2008
2008
  ariaColCount: string | null;
2009
2009
  ariaColIndex: string | null;
2010
- ariaColIndexText: string | null;
2011
2010
  ariaColSpan: string | null;
2012
2011
  ariaCurrent: string | null;
2013
2012
  ariaDisabled: string | null;
@@ -2031,7 +2030,6 @@ interface ARIAMixin {
2031
2030
  ariaRoleDescription: string | null;
2032
2031
  ariaRowCount: string | null;
2033
2032
  ariaRowIndex: string | null;
2034
- ariaRowIndexText: string | null;
2035
2033
  ariaRowSpan: string | null;
2036
2034
  ariaSelected: string | null;
2037
2035
  ariaSetSize: string | null;
@@ -2702,6 +2700,15 @@ declare var CSSFontFaceRule: {
2702
2700
  new(): CSSFontFaceRule;
2703
2701
  };
2704
2702
 
2703
+ interface CSSFontFeatureValuesRule extends CSSRule {
2704
+ fontFamily: string;
2705
+ }
2706
+
2707
+ declare var CSSFontFeatureValuesRule: {
2708
+ prototype: CSSFontFeatureValuesRule;
2709
+ new(): CSSFontFeatureValuesRule;
2710
+ };
2711
+
2705
2712
  interface CSSFontPaletteValuesRule extends CSSRule {
2706
2713
  readonly basePalette: string;
2707
2714
  readonly fontFamily: string;
@@ -2993,6 +3000,7 @@ interface CSSStyleDeclaration {
2993
3000
  containerName: string;
2994
3001
  containerType: string;
2995
3002
  content: string;
3003
+ contentVisibility: string;
2996
3004
  counterIncrement: string;
2997
3005
  counterReset: string;
2998
3006
  counterSet: string;
@@ -3112,6 +3120,7 @@ interface CSSStyleDeclaration {
3112
3120
  maskRepeat: string;
3113
3121
  maskSize: string;
3114
3122
  maskType: string;
3123
+ mathStyle: string;
3115
3124
  maxBlockSize: string;
3116
3125
  maxHeight: string;
3117
3126
  maxInlineSize: string;
@@ -3765,6 +3774,7 @@ declare var ClipboardEvent: {
3765
3774
 
3766
3775
  /** Available only in secure contexts. */
3767
3776
  interface ClipboardItem {
3777
+ readonly presentationStyle: PresentationStyle;
3768
3778
  readonly types: ReadonlyArray<string>;
3769
3779
  getType(type: string): Promise<Blob>;
3770
3780
  }
@@ -4441,7 +4451,7 @@ declare var DeviceOrientationEvent: {
4441
4451
  new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
4442
4452
  };
4443
4453
 
4444
- interface DocumentEventMap extends DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
4454
+ interface DocumentEventMap extends GlobalEventHandlersEventMap {
4445
4455
  "DOMContentLoaded": Event;
4446
4456
  "fullscreenchange": Event;
4447
4457
  "fullscreenerror": Event;
@@ -4452,7 +4462,7 @@ interface DocumentEventMap extends DocumentAndElementEventHandlersEventMap, Glob
4452
4462
  }
4453
4463
 
4454
4464
  /** Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. */
4455
- interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {
4465
+ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {
4456
4466
  /** Sets or gets the URL for the current document. */
4457
4467
  readonly URL: string;
4458
4468
  /**
@@ -4858,22 +4868,6 @@ declare var Document: {
4858
4868
  new(): Document;
4859
4869
  };
4860
4870
 
4861
- interface DocumentAndElementEventHandlersEventMap {
4862
- "copy": ClipboardEvent;
4863
- "cut": ClipboardEvent;
4864
- "paste": ClipboardEvent;
4865
- }
4866
-
4867
- interface DocumentAndElementEventHandlers {
4868
- oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
4869
- oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
4870
- onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
4871
- addEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
4872
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
4873
- removeEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
4874
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
4875
- }
4876
-
4877
4871
  /** A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made. */
4878
4872
  interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
4879
4873
  readonly ownerDocument: Document;
@@ -5397,7 +5391,7 @@ interface FileReader extends EventTarget {
5397
5391
  onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
5398
5392
  onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
5399
5393
  onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
5400
- readonly readyState: number;
5394
+ readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;
5401
5395
  readonly result: string | ArrayBuffer | null;
5402
5396
  abort(): void;
5403
5397
  readAsArrayBuffer(blob: Blob): void;
@@ -5755,7 +5749,9 @@ interface GlobalEventHandlersEventMap {
5755
5749
  "compositionstart": CompositionEvent;
5756
5750
  "compositionupdate": CompositionEvent;
5757
5751
  "contextmenu": MouseEvent;
5752
+ "copy": Event;
5758
5753
  "cuechange": Event;
5754
+ "cut": Event;
5759
5755
  "dblclick": MouseEvent;
5760
5756
  "drag": DragEvent;
5761
5757
  "dragend": DragEvent;
@@ -5790,6 +5786,7 @@ interface GlobalEventHandlersEventMap {
5790
5786
  "mouseout": MouseEvent;
5791
5787
  "mouseover": MouseEvent;
5792
5788
  "mouseup": MouseEvent;
5789
+ "paste": Event;
5793
5790
  "pause": Event;
5794
5791
  "play": Event;
5795
5792
  "playing": Event;
@@ -5875,7 +5872,9 @@ interface GlobalEventHandlers {
5875
5872
  * @param ev The mouse event.
5876
5873
  */
5877
5874
  oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
5875
+ oncopy: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5878
5876
  oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5877
+ oncut: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5879
5878
  /**
5880
5879
  * Fires when the user double-clicks the object.
5881
5880
  * @param ev The mouse event.
@@ -6005,6 +6004,7 @@ interface GlobalEventHandlers {
6005
6004
  * @param ev The mouse event.
6006
6005
  */
6007
6006
  onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
6007
+ onpaste: ((this: GlobalEventHandlers, ev: Event) => any) | null;
6008
6008
  /**
6009
6009
  * Occurs when playback is paused.
6010
6010
  * @param ev The event.
@@ -6531,11 +6531,11 @@ declare var HTMLDocument: {
6531
6531
  new(): HTMLDocument;
6532
6532
  };
6533
6533
 
6534
- interface HTMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
6534
+ interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
6535
6535
  }
6536
6536
 
6537
6537
  /** Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. */
6538
- interface HTMLElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
6538
+ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
6539
6539
  accessKey: string;
6540
6540
  readonly accessKeyLabel: string;
6541
6541
  autocapitalize: string;
@@ -9435,10 +9435,10 @@ declare var MIDIPort: {
9435
9435
  new(): MIDIPort;
9436
9436
  };
9437
9437
 
9438
- interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
9438
+ interface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
9439
9439
  }
9440
9440
 
9441
- interface MathMLElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
9441
+ interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
9442
9442
  addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
9443
9443
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
9444
9444
  removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -10562,6 +10562,10 @@ interface OffscreenCanvas extends EventTarget {
10562
10562
  *
10563
10563
  * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
10564
10564
  */
10565
+ getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;
10566
+ getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
10567
+ getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
10568
+ getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
10565
10569
  getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
10566
10570
  /** Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image. */
10567
10571
  transferToImageBitmap(): ImageBitmap;
@@ -12270,11 +12274,11 @@ declare var SVGDescElement: {
12270
12274
  new(): SVGDescElement;
12271
12275
  };
12272
12276
 
12273
- interface SVGElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
12277
+ interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
12274
12278
  }
12275
12279
 
12276
12280
  /** All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. */
12277
- interface SVGElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
12281
+ interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
12278
12282
  /** @deprecated */
12279
12283
  readonly className: any;
12280
12284
  readonly ownerSVGElement: SVGSVGElement | null;
@@ -18202,7 +18206,9 @@ declare var onclose: ((this: Window, ev: Event) => any) | null;
18202
18206
  * @param ev The mouse event.
18203
18207
  */
18204
18208
  declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;
18209
+ declare var oncopy: ((this: Window, ev: Event) => any) | null;
18205
18210
  declare var oncuechange: ((this: Window, ev: Event) => any) | null;
18211
+ declare var oncut: ((this: Window, ev: Event) => any) | null;
18206
18212
  /**
18207
18213
  * Fires when the user double-clicks the object.
18208
18214
  * @param ev The mouse event.
@@ -18332,6 +18338,7 @@ declare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;
18332
18338
  * @param ev The mouse event.
18333
18339
  */
18334
18340
  declare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;
18341
+ declare var onpaste: ((this: Window, ev: Event) => any) | null;
18335
18342
  /**
18336
18343
  * Occurs when playback is paused.
18337
18344
  * @param ev The event.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.86",
3
+ "version": "0.0.88",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],