@types/web 0.0.85 → 0.0.87
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 +1 -1
- package/index.d.ts +29 -24
- 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.
|
|
50
|
+
You can read what changed in version 0.0.87 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.87.
|
package/index.d.ts
CHANGED
|
@@ -2702,6 +2702,15 @@ declare var CSSFontFaceRule: {
|
|
|
2702
2702
|
new(): CSSFontFaceRule;
|
|
2703
2703
|
};
|
|
2704
2704
|
|
|
2705
|
+
interface CSSFontFeatureValuesRule extends CSSRule {
|
|
2706
|
+
fontFamily: string;
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2709
|
+
declare var CSSFontFeatureValuesRule: {
|
|
2710
|
+
prototype: CSSFontFeatureValuesRule;
|
|
2711
|
+
new(): CSSFontFeatureValuesRule;
|
|
2712
|
+
};
|
|
2713
|
+
|
|
2705
2714
|
interface CSSFontPaletteValuesRule extends CSSRule {
|
|
2706
2715
|
readonly basePalette: string;
|
|
2707
2716
|
readonly fontFamily: string;
|
|
@@ -4441,7 +4450,7 @@ declare var DeviceOrientationEvent: {
|
|
|
4441
4450
|
new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
|
|
4442
4451
|
};
|
|
4443
4452
|
|
|
4444
|
-
interface DocumentEventMap extends
|
|
4453
|
+
interface DocumentEventMap extends GlobalEventHandlersEventMap {
|
|
4445
4454
|
"DOMContentLoaded": Event;
|
|
4446
4455
|
"fullscreenchange": Event;
|
|
4447
4456
|
"fullscreenerror": Event;
|
|
@@ -4452,7 +4461,7 @@ interface DocumentEventMap extends DocumentAndElementEventHandlersEventMap, Glob
|
|
|
4452
4461
|
}
|
|
4453
4462
|
|
|
4454
4463
|
/** 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,
|
|
4464
|
+
interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {
|
|
4456
4465
|
/** Sets or gets the URL for the current document. */
|
|
4457
4466
|
readonly URL: string;
|
|
4458
4467
|
/**
|
|
@@ -4858,22 +4867,6 @@ declare var Document: {
|
|
|
4858
4867
|
new(): Document;
|
|
4859
4868
|
};
|
|
4860
4869
|
|
|
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
4870
|
/** 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
4871
|
interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
|
|
4879
4872
|
readonly ownerDocument: Document;
|
|
@@ -5755,7 +5748,9 @@ interface GlobalEventHandlersEventMap {
|
|
|
5755
5748
|
"compositionstart": CompositionEvent;
|
|
5756
5749
|
"compositionupdate": CompositionEvent;
|
|
5757
5750
|
"contextmenu": MouseEvent;
|
|
5751
|
+
"copy": Event;
|
|
5758
5752
|
"cuechange": Event;
|
|
5753
|
+
"cut": Event;
|
|
5759
5754
|
"dblclick": MouseEvent;
|
|
5760
5755
|
"drag": DragEvent;
|
|
5761
5756
|
"dragend": DragEvent;
|
|
@@ -5790,6 +5785,7 @@ interface GlobalEventHandlersEventMap {
|
|
|
5790
5785
|
"mouseout": MouseEvent;
|
|
5791
5786
|
"mouseover": MouseEvent;
|
|
5792
5787
|
"mouseup": MouseEvent;
|
|
5788
|
+
"paste": Event;
|
|
5793
5789
|
"pause": Event;
|
|
5794
5790
|
"play": Event;
|
|
5795
5791
|
"playing": Event;
|
|
@@ -5875,7 +5871,9 @@ interface GlobalEventHandlers {
|
|
|
5875
5871
|
* @param ev The mouse event.
|
|
5876
5872
|
*/
|
|
5877
5873
|
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
5874
|
+
oncopy: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
5878
5875
|
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
5876
|
+
oncut: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
5879
5877
|
/**
|
|
5880
5878
|
* Fires when the user double-clicks the object.
|
|
5881
5879
|
* @param ev The mouse event.
|
|
@@ -6005,6 +6003,7 @@ interface GlobalEventHandlers {
|
|
|
6005
6003
|
* @param ev The mouse event.
|
|
6006
6004
|
*/
|
|
6007
6005
|
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
6006
|
+
onpaste: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
6008
6007
|
/**
|
|
6009
6008
|
* Occurs when playback is paused.
|
|
6010
6009
|
* @param ev The event.
|
|
@@ -6531,11 +6530,11 @@ declare var HTMLDocument: {
|
|
|
6531
6530
|
new(): HTMLDocument;
|
|
6532
6531
|
};
|
|
6533
6532
|
|
|
6534
|
-
interface HTMLElementEventMap extends ElementEventMap,
|
|
6533
|
+
interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
|
|
6535
6534
|
}
|
|
6536
6535
|
|
|
6537
6536
|
/** Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. */
|
|
6538
|
-
interface HTMLElement extends Element,
|
|
6537
|
+
interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
|
|
6539
6538
|
accessKey: string;
|
|
6540
6539
|
readonly accessKeyLabel: string;
|
|
6541
6540
|
autocapitalize: string;
|
|
@@ -6693,6 +6692,8 @@ interface HTMLFormElement extends HTMLElement {
|
|
|
6693
6692
|
name: string;
|
|
6694
6693
|
/** Designates a form that is not validated when submitted. */
|
|
6695
6694
|
noValidate: boolean;
|
|
6695
|
+
rel: string;
|
|
6696
|
+
readonly relList: DOMTokenList;
|
|
6696
6697
|
/** Sets or retrieves the window or frame at which to target content. */
|
|
6697
6698
|
target: string;
|
|
6698
6699
|
/** Returns whether a form will validate when it is submitted, without having to submit it. */
|
|
@@ -9433,10 +9434,10 @@ declare var MIDIPort: {
|
|
|
9433
9434
|
new(): MIDIPort;
|
|
9434
9435
|
};
|
|
9435
9436
|
|
|
9436
|
-
interface MathMLElementEventMap extends ElementEventMap,
|
|
9437
|
+
interface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
|
|
9437
9438
|
}
|
|
9438
9439
|
|
|
9439
|
-
interface MathMLElement extends Element,
|
|
9440
|
+
interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
|
|
9440
9441
|
addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
9441
9442
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
9442
9443
|
removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -11242,6 +11243,7 @@ interface PublicKeyCredential extends Credential {
|
|
|
11242
11243
|
declare var PublicKeyCredential: {
|
|
11243
11244
|
prototype: PublicKeyCredential;
|
|
11244
11245
|
new(): PublicKeyCredential;
|
|
11246
|
+
isConditionalMediationAvailable(): Promise<boolean>;
|
|
11245
11247
|
isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
|
|
11246
11248
|
};
|
|
11247
11249
|
|
|
@@ -12267,11 +12269,11 @@ declare var SVGDescElement: {
|
|
|
12267
12269
|
new(): SVGDescElement;
|
|
12268
12270
|
};
|
|
12269
12271
|
|
|
12270
|
-
interface SVGElementEventMap extends ElementEventMap,
|
|
12272
|
+
interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
|
|
12271
12273
|
}
|
|
12272
12274
|
|
|
12273
12275
|
/** All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. */
|
|
12274
|
-
interface SVGElement extends Element,
|
|
12276
|
+
interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
|
|
12275
12277
|
/** @deprecated */
|
|
12276
12278
|
readonly className: any;
|
|
12277
12279
|
readonly ownerSVGElement: SVGSVGElement | null;
|
|
@@ -18199,7 +18201,9 @@ declare var onclose: ((this: Window, ev: Event) => any) | null;
|
|
|
18199
18201
|
* @param ev The mouse event.
|
|
18200
18202
|
*/
|
|
18201
18203
|
declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;
|
|
18204
|
+
declare var oncopy: ((this: Window, ev: Event) => any) | null;
|
|
18202
18205
|
declare var oncuechange: ((this: Window, ev: Event) => any) | null;
|
|
18206
|
+
declare var oncut: ((this: Window, ev: Event) => any) | null;
|
|
18203
18207
|
/**
|
|
18204
18208
|
* Fires when the user double-clicks the object.
|
|
18205
18209
|
* @param ev The mouse event.
|
|
@@ -18329,6 +18333,7 @@ declare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;
|
|
|
18329
18333
|
* @param ev The mouse event.
|
|
18330
18334
|
*/
|
|
18331
18335
|
declare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;
|
|
18336
|
+
declare var onpaste: ((this: Window, ev: Event) => any) | null;
|
|
18332
18337
|
/**
|
|
18333
18338
|
* Occurs when playback is paused.
|
|
18334
18339
|
* @param ev The event.
|