@types/web 0.0.239 → 0.0.240
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 +19 -3
- package/package.json +1 -1
- package/ts5.5/index.d.ts +19 -3
- package/ts5.6/index.d.ts +19 -3
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.240 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.240.
|
package/index.d.ts
CHANGED
|
@@ -3214,6 +3214,9 @@ interface Attr extends Node {
|
|
|
3214
3214
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value)
|
|
3215
3215
|
*/
|
|
3216
3216
|
value: string;
|
|
3217
|
+
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
|
|
3218
|
+
get textContent(): string;
|
|
3219
|
+
set textContent(value: string | null);
|
|
3217
3220
|
}
|
|
3218
3221
|
|
|
3219
3222
|
declare var Attr: {
|
|
@@ -7914,6 +7917,9 @@ interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {
|
|
|
7914
7917
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData)
|
|
7915
7918
|
*/
|
|
7916
7919
|
substringData(offset: number, count: number): string;
|
|
7920
|
+
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
|
|
7921
|
+
get textContent(): string;
|
|
7922
|
+
set textContent(value: string | null);
|
|
7917
7923
|
}
|
|
7918
7924
|
|
|
7919
7925
|
declare var CharacterData: {
|
|
@@ -10368,6 +10374,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
10368
10374
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln)
|
|
10369
10375
|
*/
|
|
10370
10376
|
writeln(...text: string[]): void;
|
|
10377
|
+
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
|
|
10378
|
+
get textContent(): null;
|
|
10371
10379
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
10372
10380
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
10373
10381
|
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -10378,7 +10386,7 @@ declare var Document: {
|
|
|
10378
10386
|
prototype: Document;
|
|
10379
10387
|
new(): Document;
|
|
10380
10388
|
/**
|
|
10381
|
-
* The **`parseHTMLUnsafe()`** static method of the Document object is used to parse
|
|
10389
|
+
* The **`parseHTMLUnsafe()`** static method of the Document object is used to parse an HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance.
|
|
10382
10390
|
*
|
|
10383
10391
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static)
|
|
10384
10392
|
*/
|
|
@@ -10393,6 +10401,9 @@ declare var Document: {
|
|
|
10393
10401
|
interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
|
|
10394
10402
|
readonly ownerDocument: Document;
|
|
10395
10403
|
getElementById(elementId: string): HTMLElement | null;
|
|
10404
|
+
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
|
|
10405
|
+
get textContent(): string;
|
|
10406
|
+
set textContent(value: string | null);
|
|
10396
10407
|
}
|
|
10397
10408
|
|
|
10398
10409
|
declare var DocumentFragment: {
|
|
@@ -10469,6 +10480,8 @@ interface DocumentType extends Node, ChildNode {
|
|
|
10469
10480
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId)
|
|
10470
10481
|
*/
|
|
10471
10482
|
readonly systemId: string;
|
|
10483
|
+
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
|
|
10484
|
+
get textContent(): null;
|
|
10472
10485
|
}
|
|
10473
10486
|
|
|
10474
10487
|
declare var DocumentType: {
|
|
@@ -11047,7 +11060,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
11047
11060
|
*/
|
|
11048
11061
|
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
11049
11062
|
/**
|
|
11050
|
-
* The **`setHTMLUnsafe()`** method of the Element interface is used to parse a string of HTML into a DocumentFragment,
|
|
11063
|
+
* The **`setHTMLUnsafe()`** method of the Element interface is used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
|
|
11051
11064
|
*
|
|
11052
11065
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe)
|
|
11053
11066
|
*/
|
|
@@ -11070,6 +11083,9 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
11070
11083
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)
|
|
11071
11084
|
*/
|
|
11072
11085
|
webkitMatchesSelector(selectors: string): boolean;
|
|
11086
|
+
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
|
|
11087
|
+
get textContent(): string;
|
|
11088
|
+
set textContent(value: string | null);
|
|
11073
11089
|
addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
11074
11090
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
11075
11091
|
removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -30751,7 +30767,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
|
|
|
30751
30767
|
*/
|
|
30752
30768
|
getHTML(options?: GetHTMLOptions): string;
|
|
30753
30769
|
/**
|
|
30754
|
-
* The **`setHTMLUnsafe()`** method of the ShadowRoot interface
|
|
30770
|
+
* The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM.
|
|
30755
30771
|
*
|
|
30756
30772
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe)
|
|
30757
30773
|
*/
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -3214,6 +3214,9 @@ interface Attr extends Node {
|
|
|
3214
3214
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value)
|
|
3215
3215
|
*/
|
|
3216
3216
|
value: string;
|
|
3217
|
+
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
|
|
3218
|
+
get textContent(): string;
|
|
3219
|
+
set textContent(value: string | null);
|
|
3217
3220
|
}
|
|
3218
3221
|
|
|
3219
3222
|
declare var Attr: {
|
|
@@ -7907,6 +7910,9 @@ interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {
|
|
|
7907
7910
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData)
|
|
7908
7911
|
*/
|
|
7909
7912
|
substringData(offset: number, count: number): string;
|
|
7913
|
+
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
|
|
7914
|
+
get textContent(): string;
|
|
7915
|
+
set textContent(value: string | null);
|
|
7910
7916
|
}
|
|
7911
7917
|
|
|
7912
7918
|
declare var CharacterData: {
|
|
@@ -10361,6 +10367,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
10361
10367
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln)
|
|
10362
10368
|
*/
|
|
10363
10369
|
writeln(...text: string[]): void;
|
|
10370
|
+
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
|
|
10371
|
+
get textContent(): null;
|
|
10364
10372
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
10365
10373
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
10366
10374
|
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -10371,7 +10379,7 @@ declare var Document: {
|
|
|
10371
10379
|
prototype: Document;
|
|
10372
10380
|
new(): Document;
|
|
10373
10381
|
/**
|
|
10374
|
-
* The **`parseHTMLUnsafe()`** static method of the Document object is used to parse
|
|
10382
|
+
* The **`parseHTMLUnsafe()`** static method of the Document object is used to parse an HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance.
|
|
10375
10383
|
*
|
|
10376
10384
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static)
|
|
10377
10385
|
*/
|
|
@@ -10386,6 +10394,9 @@ declare var Document: {
|
|
|
10386
10394
|
interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
|
|
10387
10395
|
readonly ownerDocument: Document;
|
|
10388
10396
|
getElementById(elementId: string): HTMLElement | null;
|
|
10397
|
+
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
|
|
10398
|
+
get textContent(): string;
|
|
10399
|
+
set textContent(value: string | null);
|
|
10389
10400
|
}
|
|
10390
10401
|
|
|
10391
10402
|
declare var DocumentFragment: {
|
|
@@ -10462,6 +10473,8 @@ interface DocumentType extends Node, ChildNode {
|
|
|
10462
10473
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId)
|
|
10463
10474
|
*/
|
|
10464
10475
|
readonly systemId: string;
|
|
10476
|
+
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
|
|
10477
|
+
get textContent(): null;
|
|
10465
10478
|
}
|
|
10466
10479
|
|
|
10467
10480
|
declare var DocumentType: {
|
|
@@ -11038,7 +11051,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
11038
11051
|
*/
|
|
11039
11052
|
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
11040
11053
|
/**
|
|
11041
|
-
* The **`setHTMLUnsafe()`** method of the Element interface is used to parse a string of HTML into a DocumentFragment,
|
|
11054
|
+
* The **`setHTMLUnsafe()`** method of the Element interface is used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
|
|
11042
11055
|
*
|
|
11043
11056
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe)
|
|
11044
11057
|
*/
|
|
@@ -11061,6 +11074,9 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
11061
11074
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)
|
|
11062
11075
|
*/
|
|
11063
11076
|
webkitMatchesSelector(selectors: string): boolean;
|
|
11077
|
+
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
|
|
11078
|
+
get textContent(): string;
|
|
11079
|
+
set textContent(value: string | null);
|
|
11064
11080
|
addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
11065
11081
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
11066
11082
|
removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -30730,7 +30746,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
|
|
|
30730
30746
|
*/
|
|
30731
30747
|
getHTML(options?: GetHTMLOptions): string;
|
|
30732
30748
|
/**
|
|
30733
|
-
* The **`setHTMLUnsafe()`** method of the ShadowRoot interface
|
|
30749
|
+
* The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM.
|
|
30734
30750
|
*
|
|
30735
30751
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe)
|
|
30736
30752
|
*/
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -3214,6 +3214,9 @@ interface Attr extends Node {
|
|
|
3214
3214
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value)
|
|
3215
3215
|
*/
|
|
3216
3216
|
value: string;
|
|
3217
|
+
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
|
|
3218
|
+
get textContent(): string;
|
|
3219
|
+
set textContent(value: string | null);
|
|
3217
3220
|
}
|
|
3218
3221
|
|
|
3219
3222
|
declare var Attr: {
|
|
@@ -7914,6 +7917,9 @@ interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {
|
|
|
7914
7917
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData)
|
|
7915
7918
|
*/
|
|
7916
7919
|
substringData(offset: number, count: number): string;
|
|
7920
|
+
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
|
|
7921
|
+
get textContent(): string;
|
|
7922
|
+
set textContent(value: string | null);
|
|
7917
7923
|
}
|
|
7918
7924
|
|
|
7919
7925
|
declare var CharacterData: {
|
|
@@ -10368,6 +10374,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
10368
10374
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln)
|
|
10369
10375
|
*/
|
|
10370
10376
|
writeln(...text: string[]): void;
|
|
10377
|
+
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
|
|
10378
|
+
get textContent(): null;
|
|
10371
10379
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
10372
10380
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
10373
10381
|
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -10378,7 +10386,7 @@ declare var Document: {
|
|
|
10378
10386
|
prototype: Document;
|
|
10379
10387
|
new(): Document;
|
|
10380
10388
|
/**
|
|
10381
|
-
* The **`parseHTMLUnsafe()`** static method of the Document object is used to parse
|
|
10389
|
+
* The **`parseHTMLUnsafe()`** static method of the Document object is used to parse an HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance.
|
|
10382
10390
|
*
|
|
10383
10391
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static)
|
|
10384
10392
|
*/
|
|
@@ -10393,6 +10401,9 @@ declare var Document: {
|
|
|
10393
10401
|
interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
|
|
10394
10402
|
readonly ownerDocument: Document;
|
|
10395
10403
|
getElementById(elementId: string): HTMLElement | null;
|
|
10404
|
+
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
|
|
10405
|
+
get textContent(): string;
|
|
10406
|
+
set textContent(value: string | null);
|
|
10396
10407
|
}
|
|
10397
10408
|
|
|
10398
10409
|
declare var DocumentFragment: {
|
|
@@ -10469,6 +10480,8 @@ interface DocumentType extends Node, ChildNode {
|
|
|
10469
10480
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId)
|
|
10470
10481
|
*/
|
|
10471
10482
|
readonly systemId: string;
|
|
10483
|
+
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
|
|
10484
|
+
get textContent(): null;
|
|
10472
10485
|
}
|
|
10473
10486
|
|
|
10474
10487
|
declare var DocumentType: {
|
|
@@ -11047,7 +11060,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
11047
11060
|
*/
|
|
11048
11061
|
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
11049
11062
|
/**
|
|
11050
|
-
* The **`setHTMLUnsafe()`** method of the Element interface is used to parse a string of HTML into a DocumentFragment,
|
|
11063
|
+
* The **`setHTMLUnsafe()`** method of the Element interface is used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
|
|
11051
11064
|
*
|
|
11052
11065
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe)
|
|
11053
11066
|
*/
|
|
@@ -11070,6 +11083,9 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
11070
11083
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)
|
|
11071
11084
|
*/
|
|
11072
11085
|
webkitMatchesSelector(selectors: string): boolean;
|
|
11086
|
+
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
|
|
11087
|
+
get textContent(): string;
|
|
11088
|
+
set textContent(value: string | null);
|
|
11073
11089
|
addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
11074
11090
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
11075
11091
|
removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -30751,7 +30767,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
|
|
|
30751
30767
|
*/
|
|
30752
30768
|
getHTML(options?: GetHTMLOptions): string;
|
|
30753
30769
|
/**
|
|
30754
|
-
* The **`setHTMLUnsafe()`** method of the ShadowRoot interface
|
|
30770
|
+
* The **`setHTMLUnsafe()`** method of the ShadowRoot interface can be used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM.
|
|
30755
30771
|
*
|
|
30756
30772
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe)
|
|
30757
30773
|
*/
|