@types/web 0.0.139 → 0.0.141
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 +87 -18
- package/iterable.d.ts +3 -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.141 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.141.
|
package/index.d.ts
CHANGED
|
@@ -272,6 +272,10 @@ interface ConstrainULongRange extends ULongRange {
|
|
|
272
272
|
ideal?: number;
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
+
interface ContentVisibilityAutoStateChangeEventInit extends EventInit {
|
|
276
|
+
skipped?: boolean;
|
|
277
|
+
}
|
|
278
|
+
|
|
275
279
|
interface ConvolverOptions extends AudioNodeOptions {
|
|
276
280
|
buffer?: AudioBuffer | null;
|
|
277
281
|
disableNormalization?: boolean;
|
|
@@ -1755,16 +1759,16 @@ interface ScrollToOptions extends ScrollOptions {
|
|
|
1755
1759
|
interface SecurityPolicyViolationEventInit extends EventInit {
|
|
1756
1760
|
blockedURI?: string;
|
|
1757
1761
|
columnNumber?: number;
|
|
1758
|
-
disposition
|
|
1759
|
-
documentURI
|
|
1760
|
-
effectiveDirective
|
|
1762
|
+
disposition?: SecurityPolicyViolationEventDisposition;
|
|
1763
|
+
documentURI?: string;
|
|
1764
|
+
effectiveDirective?: string;
|
|
1761
1765
|
lineNumber?: number;
|
|
1762
|
-
originalPolicy
|
|
1766
|
+
originalPolicy?: string;
|
|
1763
1767
|
referrer?: string;
|
|
1764
1768
|
sample?: string;
|
|
1765
1769
|
sourceFile?: string;
|
|
1766
|
-
statusCode
|
|
1767
|
-
violatedDirective
|
|
1770
|
+
statusCode?: number;
|
|
1771
|
+
violatedDirective?: string;
|
|
1768
1772
|
}
|
|
1769
1773
|
|
|
1770
1774
|
interface ShadowRootInit {
|
|
@@ -4092,6 +4096,8 @@ interface CSSStyleDeclaration {
|
|
|
4092
4096
|
containerType: string;
|
|
4093
4097
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content) */
|
|
4094
4098
|
content: string;
|
|
4099
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content-visibility) */
|
|
4100
|
+
contentVisibility: string;
|
|
4095
4101
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-increment) */
|
|
4096
4102
|
counterIncrement: string;
|
|
4097
4103
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-reset) */
|
|
@@ -4593,6 +4599,7 @@ interface CSSStyleDeclaration {
|
|
|
4593
4599
|
textUnderlinePosition: string;
|
|
4594
4600
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */
|
|
4595
4601
|
textWrap: string;
|
|
4602
|
+
textWrapMode: string;
|
|
4596
4603
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */
|
|
4597
4604
|
top: string;
|
|
4598
4605
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */
|
|
@@ -5815,6 +5822,17 @@ declare var ConstantSourceNode: {
|
|
|
5815
5822
|
new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;
|
|
5816
5823
|
};
|
|
5817
5824
|
|
|
5825
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent) */
|
|
5826
|
+
interface ContentVisibilityAutoStateChangeEvent extends Event {
|
|
5827
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent/skipped) */
|
|
5828
|
+
readonly skipped: boolean;
|
|
5829
|
+
}
|
|
5830
|
+
|
|
5831
|
+
declare var ContentVisibilityAutoStateChangeEvent: {
|
|
5832
|
+
prototype: ContentVisibilityAutoStateChangeEvent;
|
|
5833
|
+
new(type: string, eventInitDict?: ContentVisibilityAutoStateChangeEventInit): ContentVisibilityAutoStateChangeEvent;
|
|
5834
|
+
};
|
|
5835
|
+
|
|
5818
5836
|
/**
|
|
5819
5837
|
* An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output.
|
|
5820
5838
|
*
|
|
@@ -5976,6 +5994,16 @@ declare var CustomEvent: {
|
|
|
5976
5994
|
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
|
|
5977
5995
|
};
|
|
5978
5996
|
|
|
5997
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomStateSet) */
|
|
5998
|
+
interface CustomStateSet {
|
|
5999
|
+
forEach(callbackfn: (value: string, key: string, parent: CustomStateSet) => void, thisArg?: any): void;
|
|
6000
|
+
}
|
|
6001
|
+
|
|
6002
|
+
declare var CustomStateSet: {
|
|
6003
|
+
prototype: CustomStateSet;
|
|
6004
|
+
new(): CustomStateSet;
|
|
6005
|
+
};
|
|
6006
|
+
|
|
5979
6007
|
/**
|
|
5980
6008
|
* An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API.
|
|
5981
6009
|
*
|
|
@@ -7164,6 +7192,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
7164
7192
|
createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
|
|
7165
7193
|
createEvent(eventInterface: "CloseEvent"): CloseEvent;
|
|
7166
7194
|
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
|
|
7195
|
+
createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent;
|
|
7167
7196
|
createEvent(eventInterface: "CustomEvent"): CustomEvent;
|
|
7168
7197
|
createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
|
|
7169
7198
|
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
|
|
@@ -7941,6 +7970,8 @@ interface ElementInternals extends ARIAMixin {
|
|
|
7941
7970
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot)
|
|
7942
7971
|
*/
|
|
7943
7972
|
readonly shadowRoot: ShadowRoot | null;
|
|
7973
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/states) */
|
|
7974
|
+
readonly states: CustomStateSet;
|
|
7944
7975
|
/**
|
|
7945
7976
|
* Returns the error message that would be shown to the user if internals's target element was to be checked for validity.
|
|
7946
7977
|
*
|
|
@@ -8719,7 +8750,6 @@ declare var GainNode: {
|
|
|
8719
8750
|
|
|
8720
8751
|
/**
|
|
8721
8752
|
* This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.
|
|
8722
|
-
* Available only in secure contexts.
|
|
8723
8753
|
*
|
|
8724
8754
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad)
|
|
8725
8755
|
*/
|
|
@@ -8748,7 +8778,6 @@ declare var Gamepad: {
|
|
|
8748
8778
|
|
|
8749
8779
|
/**
|
|
8750
8780
|
* An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.
|
|
8751
|
-
* Available only in secure contexts.
|
|
8752
8781
|
*
|
|
8753
8782
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton)
|
|
8754
8783
|
*/
|
|
@@ -8768,7 +8797,6 @@ declare var GamepadButton: {
|
|
|
8768
8797
|
|
|
8769
8798
|
/**
|
|
8770
8799
|
* This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to.
|
|
8771
|
-
* Available only in secure contexts.
|
|
8772
8800
|
*
|
|
8773
8801
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent)
|
|
8774
8802
|
*/
|
|
@@ -11030,7 +11058,11 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|
|
11030
11058
|
checked: boolean;
|
|
11031
11059
|
/** Sets or retrieves the state of the check box or radio button. */
|
|
11032
11060
|
defaultChecked: boolean;
|
|
11033
|
-
/**
|
|
11061
|
+
/**
|
|
11062
|
+
* Sets or retrieves the initial contents of the object.
|
|
11063
|
+
*
|
|
11064
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/defaultValue)
|
|
11065
|
+
*/
|
|
11034
11066
|
defaultValue: string;
|
|
11035
11067
|
dirName: string;
|
|
11036
11068
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/disabled) */
|
|
@@ -11089,12 +11121,25 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|
|
11089
11121
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/list)
|
|
11090
11122
|
*/
|
|
11091
11123
|
readonly list: HTMLDataListElement | null;
|
|
11092
|
-
/**
|
|
11124
|
+
/**
|
|
11125
|
+
* 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.
|
|
11126
|
+
*
|
|
11127
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/max)
|
|
11128
|
+
*/
|
|
11093
11129
|
max: string;
|
|
11094
|
-
/**
|
|
11130
|
+
/**
|
|
11131
|
+
* Sets or retrieves the maximum number of characters that the user can enter in a text control.
|
|
11132
|
+
*
|
|
11133
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/maxLength)
|
|
11134
|
+
*/
|
|
11095
11135
|
maxLength: number;
|
|
11096
|
-
/**
|
|
11136
|
+
/**
|
|
11137
|
+
* 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.
|
|
11138
|
+
*
|
|
11139
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/min)
|
|
11140
|
+
*/
|
|
11097
11141
|
min: string;
|
|
11142
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/minLength) */
|
|
11098
11143
|
minLength: number;
|
|
11099
11144
|
/**
|
|
11100
11145
|
* Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
|
|
@@ -11125,9 +11170,17 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|
|
11125
11170
|
required: boolean;
|
|
11126
11171
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection) */
|
|
11127
11172
|
selectionDirection: "forward" | "backward" | "none" | null;
|
|
11128
|
-
/**
|
|
11173
|
+
/**
|
|
11174
|
+
* Gets or sets the end position or offset of a text selection.
|
|
11175
|
+
*
|
|
11176
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionEnd)
|
|
11177
|
+
*/
|
|
11129
11178
|
selectionEnd: number | null;
|
|
11130
|
-
/**
|
|
11179
|
+
/**
|
|
11180
|
+
* Gets or sets the starting position or offset of a text selection.
|
|
11181
|
+
*
|
|
11182
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionStart)
|
|
11183
|
+
*/
|
|
11131
11184
|
selectionStart: number | null;
|
|
11132
11185
|
size: number;
|
|
11133
11186
|
/** The address or URL of the a media resource that is to be considered. */
|
|
@@ -11157,7 +11210,11 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|
|
11157
11210
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validity)
|
|
11158
11211
|
*/
|
|
11159
11212
|
readonly validity: ValidityState;
|
|
11160
|
-
/**
|
|
11213
|
+
/**
|
|
11214
|
+
* Returns the value of the data at the cursor's current position.
|
|
11215
|
+
*
|
|
11216
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/value)
|
|
11217
|
+
*/
|
|
11161
11218
|
value: string;
|
|
11162
11219
|
/** 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. */
|
|
11163
11220
|
valueAsDate: Date | null;
|
|
@@ -12620,6 +12677,7 @@ declare var HTMLSlotElement: {
|
|
|
12620
12677
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement)
|
|
12621
12678
|
*/
|
|
12622
12679
|
interface HTMLSourceElement extends HTMLElement {
|
|
12680
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/height) */
|
|
12623
12681
|
height: number;
|
|
12624
12682
|
/**
|
|
12625
12683
|
* Gets or sets the intended media type of the media source.
|
|
@@ -12643,6 +12701,7 @@ interface HTMLSourceElement extends HTMLElement {
|
|
|
12643
12701
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/type)
|
|
12644
12702
|
*/
|
|
12645
12703
|
type: string;
|
|
12704
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/width) */
|
|
12646
12705
|
width: number;
|
|
12647
12706
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
12648
12707
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -21459,6 +21518,8 @@ interface ShadowRootEventMap {
|
|
|
21459
21518
|
|
|
21460
21519
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot) */
|
|
21461
21520
|
interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
|
|
21521
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/clonable) */
|
|
21522
|
+
readonly clonable: boolean;
|
|
21462
21523
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus) */
|
|
21463
21524
|
readonly delegatesFocus: boolean;
|
|
21464
21525
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host) */
|
|
@@ -25989,7 +26050,11 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
|
|
|
25989
26050
|
readonly window: Window & typeof globalThis;
|
|
25990
26051
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */
|
|
25991
26052
|
alert(message?: any): void;
|
|
25992
|
-
/**
|
|
26053
|
+
/**
|
|
26054
|
+
* @deprecated
|
|
26055
|
+
*
|
|
26056
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur)
|
|
26057
|
+
*/
|
|
25993
26058
|
blur(): void;
|
|
25994
26059
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */
|
|
25995
26060
|
cancelIdleCallback(handle: number): void;
|
|
@@ -27614,7 +27679,11 @@ declare var visualViewport: VisualViewport | null;
|
|
|
27614
27679
|
declare var window: Window & typeof globalThis;
|
|
27615
27680
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */
|
|
27616
27681
|
declare function alert(message?: any): void;
|
|
27617
|
-
/**
|
|
27682
|
+
/**
|
|
27683
|
+
* @deprecated
|
|
27684
|
+
*
|
|
27685
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur)
|
|
27686
|
+
*/
|
|
27618
27687
|
declare function blur(): void;
|
|
27619
27688
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */
|
|
27620
27689
|
declare function cancelIdleCallback(handle: number): void;
|
package/iterable.d.ts
CHANGED