@types/web 0.0.137 → 0.0.139
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 +33 -2
- 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.139 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.139.
|
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) */
|
|
@@ -5033,6 +5050,8 @@ interface CSSStyleDeclaration {
|
|
|
5033
5050
|
y: string;
|
|
5034
5051
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */
|
|
5035
5052
|
zIndex: string;
|
|
5053
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/zoom) */
|
|
5054
|
+
zoom: string;
|
|
5036
5055
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) */
|
|
5037
5056
|
getPropertyPriority(property: string): string;
|
|
5038
5057
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) */
|
|
@@ -7406,6 +7425,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
7406
7425
|
declare var Document: {
|
|
7407
7426
|
prototype: Document;
|
|
7408
7427
|
new(): Document;
|
|
7428
|
+
parseHTMLUnsafe(html: string): Document;
|
|
7409
7429
|
};
|
|
7410
7430
|
|
|
7411
7431
|
/**
|
|
@@ -7856,6 +7876,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
|
|
|
7856
7876
|
setAttributeNode(attr: Attr): Attr | null;
|
|
7857
7877
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */
|
|
7858
7878
|
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
7879
|
+
setHTMLUnsafe(html: string): void;
|
|
7859
7880
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */
|
|
7860
7881
|
setPointerCapture(pointerId: number): void;
|
|
7861
7882
|
/**
|
|
@@ -11113,7 +11134,11 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|
|
11113
11134
|
src: string;
|
|
11114
11135
|
/** 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. */
|
|
11115
11136
|
step: string;
|
|
11116
|
-
/**
|
|
11137
|
+
/**
|
|
11138
|
+
* Returns the content type of the object.
|
|
11139
|
+
*
|
|
11140
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/type)
|
|
11141
|
+
*/
|
|
11117
11142
|
type: string;
|
|
11118
11143
|
/**
|
|
11119
11144
|
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
|
|
@@ -11928,6 +11953,7 @@ interface HTMLObjectElement extends HTMLElement {
|
|
|
11928
11953
|
type: string;
|
|
11929
11954
|
/**
|
|
11930
11955
|
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
|
|
11956
|
+
* @deprecated
|
|
11931
11957
|
*
|
|
11932
11958
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/useMap)
|
|
11933
11959
|
*/
|
|
@@ -13258,7 +13284,11 @@ interface HTMLTextAreaElement extends HTMLElement {
|
|
|
13258
13284
|
selectionStart: number;
|
|
13259
13285
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength) */
|
|
13260
13286
|
readonly textLength: number;
|
|
13261
|
-
/**
|
|
13287
|
+
/**
|
|
13288
|
+
* Retrieves the type of control.
|
|
13289
|
+
*
|
|
13290
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/type)
|
|
13291
|
+
*/
|
|
13262
13292
|
readonly type: string;
|
|
13263
13293
|
/** 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. */
|
|
13264
13294
|
readonly validationMessage: string;
|
|
@@ -21438,6 +21468,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
|
|
|
21438
21468
|
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
|
|
21439
21469
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment) */
|
|
21440
21470
|
readonly slotAssignment: SlotAssignmentMode;
|
|
21471
|
+
setHTMLUnsafe(html: string): void;
|
|
21441
21472
|
/** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
|
|
21442
21473
|
addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
21443
21474
|
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;
|