@types/web 0.0.138 → 0.0.140
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 +69 -9
- package/iterable.d.ts +5 -0
- 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.140 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.140.
|
package/index.d.ts
CHANGED
|
@@ -2326,6 +2326,8 @@ declare var AbortSignal: {
|
|
|
2326
2326
|
new(): AbortSignal;
|
|
2327
2327
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */
|
|
2328
2328
|
// abort(reason?: any): AbortSignal; - To be re-added in the future
|
|
2329
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
|
|
2330
|
+
any(signals: AbortSignal[]): AbortSignal;
|
|
2329
2331
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */
|
|
2330
2332
|
timeout(milliseconds: number): AbortSignal;
|
|
2331
2333
|
};
|
|
@@ -3775,6 +3777,16 @@ declare var CSSScale: {
|
|
|
3775
3777
|
new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale;
|
|
3776
3778
|
};
|
|
3777
3779
|
|
|
3780
|
+
interface CSSScopeRule extends CSSGroupingRule {
|
|
3781
|
+
readonly end: string | null;
|
|
3782
|
+
readonly start: string | null;
|
|
3783
|
+
}
|
|
3784
|
+
|
|
3785
|
+
declare var CSSScopeRule: {
|
|
3786
|
+
prototype: CSSScopeRule;
|
|
3787
|
+
new(): CSSScopeRule;
|
|
3788
|
+
};
|
|
3789
|
+
|
|
3778
3790
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */
|
|
3779
3791
|
interface CSSSkew extends CSSTransformComponent {
|
|
3780
3792
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */
|
|
@@ -4035,6 +4047,7 @@ interface CSSStyleDeclaration {
|
|
|
4035
4047
|
clipRule: string;
|
|
4036
4048
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */
|
|
4037
4049
|
color: string;
|
|
4050
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation) */
|
|
4038
4051
|
colorInterpolation: string;
|
|
4039
4052
|
colorInterpolationFilters: string;
|
|
4040
4053
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */
|
|
@@ -4594,6 +4607,8 @@ interface CSSStyleDeclaration {
|
|
|
4594
4607
|
transformStyle: string;
|
|
4595
4608
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */
|
|
4596
4609
|
transition: string;
|
|
4610
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-behavior) */
|
|
4611
|
+
transitionBehavior: string;
|
|
4597
4612
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */
|
|
4598
4613
|
transitionDelay: string;
|
|
4599
4614
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */
|
|
@@ -5015,6 +5030,8 @@ interface CSSStyleDeclaration {
|
|
|
5015
5030
|
webkitUserSelect: string;
|
|
5016
5031
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space) */
|
|
5017
5032
|
whiteSpace: string;
|
|
5033
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space-collapse) */
|
|
5034
|
+
whiteSpaceCollapse: string;
|
|
5018
5035
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/widows) */
|
|
5019
5036
|
widows: string;
|
|
5020
5037
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/width) */
|
|
@@ -7408,6 +7425,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
7408
7425
|
declare var Document: {
|
|
7409
7426
|
prototype: Document;
|
|
7410
7427
|
new(): Document;
|
|
7428
|
+
parseHTMLUnsafe(html: string): Document;
|
|
7411
7429
|
};
|
|
7412
7430
|
|
|
7413
7431
|
/**
|
|
@@ -7858,6 +7876,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
|
|
|
7858
7876
|
setAttributeNode(attr: Attr): Attr | null;
|
|
7859
7877
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */
|
|
7860
7878
|
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
7879
|
+
setHTMLUnsafe(html: string): void;
|
|
7861
7880
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */
|
|
7862
7881
|
setPointerCapture(pointerId: number): void;
|
|
7863
7882
|
/**
|
|
@@ -11011,7 +11030,11 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|
|
11011
11030
|
checked: boolean;
|
|
11012
11031
|
/** Sets or retrieves the state of the check box or radio button. */
|
|
11013
11032
|
defaultChecked: boolean;
|
|
11014
|
-
/**
|
|
11033
|
+
/**
|
|
11034
|
+
* Sets or retrieves the initial contents of the object.
|
|
11035
|
+
*
|
|
11036
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/defaultValue)
|
|
11037
|
+
*/
|
|
11015
11038
|
defaultValue: string;
|
|
11016
11039
|
dirName: string;
|
|
11017
11040
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/disabled) */
|
|
@@ -11070,12 +11093,25 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|
|
11070
11093
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/list)
|
|
11071
11094
|
*/
|
|
11072
11095
|
readonly list: HTMLDataListElement | null;
|
|
11073
|
-
/**
|
|
11096
|
+
/**
|
|
11097
|
+
* Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field.
|
|
11098
|
+
*
|
|
11099
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/max)
|
|
11100
|
+
*/
|
|
11074
11101
|
max: string;
|
|
11075
|
-
/**
|
|
11102
|
+
/**
|
|
11103
|
+
* Sets or retrieves the maximum number of characters that the user can enter in a text control.
|
|
11104
|
+
*
|
|
11105
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/maxLength)
|
|
11106
|
+
*/
|
|
11076
11107
|
maxLength: number;
|
|
11077
|
-
/**
|
|
11108
|
+
/**
|
|
11109
|
+
* Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field.
|
|
11110
|
+
*
|
|
11111
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/min)
|
|
11112
|
+
*/
|
|
11078
11113
|
min: string;
|
|
11114
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/minLength) */
|
|
11079
11115
|
minLength: number;
|
|
11080
11116
|
/**
|
|
11081
11117
|
* Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
|
|
@@ -11106,16 +11142,28 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|
|
11106
11142
|
required: boolean;
|
|
11107
11143
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection) */
|
|
11108
11144
|
selectionDirection: "forward" | "backward" | "none" | null;
|
|
11109
|
-
/**
|
|
11145
|
+
/**
|
|
11146
|
+
* Gets or sets the end position or offset of a text selection.
|
|
11147
|
+
*
|
|
11148
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionEnd)
|
|
11149
|
+
*/
|
|
11110
11150
|
selectionEnd: number | null;
|
|
11111
|
-
/**
|
|
11151
|
+
/**
|
|
11152
|
+
* Gets or sets the starting position or offset of a text selection.
|
|
11153
|
+
*
|
|
11154
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionStart)
|
|
11155
|
+
*/
|
|
11112
11156
|
selectionStart: number | null;
|
|
11113
11157
|
size: number;
|
|
11114
11158
|
/** The address or URL of the a media resource that is to be considered. */
|
|
11115
11159
|
src: string;
|
|
11116
11160
|
/** Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. */
|
|
11117
11161
|
step: string;
|
|
11118
|
-
/**
|
|
11162
|
+
/**
|
|
11163
|
+
* Returns the content type of the object.
|
|
11164
|
+
*
|
|
11165
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/type)
|
|
11166
|
+
*/
|
|
11119
11167
|
type: string;
|
|
11120
11168
|
/**
|
|
11121
11169
|
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
|
|
@@ -11134,7 +11182,11 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|
|
11134
11182
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validity)
|
|
11135
11183
|
*/
|
|
11136
11184
|
readonly validity: ValidityState;
|
|
11137
|
-
/**
|
|
11185
|
+
/**
|
|
11186
|
+
* Returns the value of the data at the cursor's current position.
|
|
11187
|
+
*
|
|
11188
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/value)
|
|
11189
|
+
*/
|
|
11138
11190
|
value: string;
|
|
11139
11191
|
/** Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. */
|
|
11140
11192
|
valueAsDate: Date | null;
|
|
@@ -11930,6 +11982,7 @@ interface HTMLObjectElement extends HTMLElement {
|
|
|
11930
11982
|
type: string;
|
|
11931
11983
|
/**
|
|
11932
11984
|
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
|
|
11985
|
+
* @deprecated
|
|
11933
11986
|
*
|
|
11934
11987
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/useMap)
|
|
11935
11988
|
*/
|
|
@@ -12596,6 +12649,7 @@ declare var HTMLSlotElement: {
|
|
|
12596
12649
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement)
|
|
12597
12650
|
*/
|
|
12598
12651
|
interface HTMLSourceElement extends HTMLElement {
|
|
12652
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/height) */
|
|
12599
12653
|
height: number;
|
|
12600
12654
|
/**
|
|
12601
12655
|
* Gets or sets the intended media type of the media source.
|
|
@@ -12619,6 +12673,7 @@ interface HTMLSourceElement extends HTMLElement {
|
|
|
12619
12673
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/type)
|
|
12620
12674
|
*/
|
|
12621
12675
|
type: string;
|
|
12676
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/width) */
|
|
12622
12677
|
width: number;
|
|
12623
12678
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
12624
12679
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -13260,7 +13315,11 @@ interface HTMLTextAreaElement extends HTMLElement {
|
|
|
13260
13315
|
selectionStart: number;
|
|
13261
13316
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength) */
|
|
13262
13317
|
readonly textLength: number;
|
|
13263
|
-
/**
|
|
13318
|
+
/**
|
|
13319
|
+
* Retrieves the type of control.
|
|
13320
|
+
*
|
|
13321
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/type)
|
|
13322
|
+
*/
|
|
13264
13323
|
readonly type: string;
|
|
13265
13324
|
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
|
|
13266
13325
|
readonly validationMessage: string;
|
|
@@ -21440,6 +21499,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
|
|
|
21440
21499
|
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
|
|
21441
21500
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment) */
|
|
21442
21501
|
readonly slotAssignment: SlotAssignmentMode;
|
|
21502
|
+
setHTMLUnsafe(html: string): void;
|
|
21443
21503
|
/** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
|
|
21444
21504
|
addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
21445
21505
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
package/iterable.d.ts
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
/// Window Iterable APIs
|
|
3
3
|
/////////////////////////////
|
|
4
4
|
|
|
5
|
+
interface AbortSignal {
|
|
6
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
|
|
7
|
+
any(signals: Iterable<AbortSignal>): AbortSignal;
|
|
8
|
+
}
|
|
9
|
+
|
|
5
10
|
interface AudioParam {
|
|
6
11
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */
|
|
7
12
|
setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
|