@types/web 0.0.270 → 0.0.272
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 +85 -22
- package/package.json +1 -1
- package/ts5.5/index.d.ts +85 -22
- package/ts5.6/index.d.ts +85 -22
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.272 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.272.
|
package/index.d.ts
CHANGED
|
@@ -360,6 +360,11 @@ interface CloseEventInit extends EventInit {
|
|
|
360
360
|
wasClean?: boolean;
|
|
361
361
|
}
|
|
362
362
|
|
|
363
|
+
interface CommandEventInit extends EventInit {
|
|
364
|
+
command?: string;
|
|
365
|
+
source?: Element | null;
|
|
366
|
+
}
|
|
367
|
+
|
|
363
368
|
interface CompositionEventInit extends UIEventInit {
|
|
364
369
|
data?: string;
|
|
365
370
|
}
|
|
@@ -2361,8 +2366,8 @@ interface ULongRange {
|
|
|
2361
2366
|
}
|
|
2362
2367
|
|
|
2363
2368
|
interface URLPatternComponentResult {
|
|
2364
|
-
groups
|
|
2365
|
-
input
|
|
2369
|
+
groups: Record<string, string | undefined>;
|
|
2370
|
+
input: string;
|
|
2366
2371
|
}
|
|
2367
2372
|
|
|
2368
2373
|
interface URLPatternInit {
|
|
@@ -2382,15 +2387,15 @@ interface URLPatternOptions {
|
|
|
2382
2387
|
}
|
|
2383
2388
|
|
|
2384
2389
|
interface URLPatternResult {
|
|
2385
|
-
hash
|
|
2386
|
-
hostname
|
|
2387
|
-
inputs
|
|
2388
|
-
password
|
|
2389
|
-
pathname
|
|
2390
|
-
port
|
|
2391
|
-
protocol
|
|
2392
|
-
search
|
|
2393
|
-
username
|
|
2390
|
+
hash: URLPatternComponentResult;
|
|
2391
|
+
hostname: URLPatternComponentResult;
|
|
2392
|
+
inputs: URLPatternInput[];
|
|
2393
|
+
password: URLPatternComponentResult;
|
|
2394
|
+
pathname: URLPatternComponentResult;
|
|
2395
|
+
port: URLPatternComponentResult;
|
|
2396
|
+
protocol: URLPatternComponentResult;
|
|
2397
|
+
search: URLPatternComponentResult;
|
|
2398
|
+
username: URLPatternComponentResult;
|
|
2394
2399
|
}
|
|
2395
2400
|
|
|
2396
2401
|
interface UnderlyingByteSource {
|
|
@@ -3272,6 +3277,7 @@ interface AnimationTimeline {
|
|
|
3272
3277
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime)
|
|
3273
3278
|
*/
|
|
3274
3279
|
readonly currentTime: CSSNumberish | null;
|
|
3280
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/duration) */
|
|
3275
3281
|
readonly duration: CSSNumberish | null;
|
|
3276
3282
|
}
|
|
3277
3283
|
|
|
@@ -4818,7 +4824,7 @@ interface CSSFontFaceRule extends CSSRule {
|
|
|
4818
4824
|
*
|
|
4819
4825
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style)
|
|
4820
4826
|
*/
|
|
4821
|
-
get style():
|
|
4827
|
+
get style(): CSSStyleDeclaration;
|
|
4822
4828
|
set style(cssText: string);
|
|
4823
4829
|
}
|
|
4824
4830
|
|
|
@@ -4988,7 +4994,7 @@ interface CSSKeyframeRule extends CSSRule {
|
|
|
4988
4994
|
*
|
|
4989
4995
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style)
|
|
4990
4996
|
*/
|
|
4991
|
-
get style():
|
|
4997
|
+
get style(): CSSStyleDeclaration;
|
|
4992
4998
|
set style(cssText: string);
|
|
4993
4999
|
}
|
|
4994
5000
|
|
|
@@ -5323,7 +5329,7 @@ interface CSSNestedDeclarations extends CSSRule {
|
|
|
5323
5329
|
*
|
|
5324
5330
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations/style)
|
|
5325
5331
|
*/
|
|
5326
|
-
get style():
|
|
5332
|
+
get style(): CSSStyleDeclaration;
|
|
5327
5333
|
set style(cssText: string);
|
|
5328
5334
|
}
|
|
5329
5335
|
|
|
@@ -5437,7 +5443,7 @@ declare var CSSNumericValue: {
|
|
|
5437
5443
|
*
|
|
5438
5444
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors)
|
|
5439
5445
|
*/
|
|
5440
|
-
interface CSSPageDescriptors extends
|
|
5446
|
+
interface CSSPageDescriptors extends CSSStyleDeclarationBase {
|
|
5441
5447
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors#margin) */
|
|
5442
5448
|
margin: string;
|
|
5443
5449
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors#margin-bottom) */
|
|
@@ -5515,7 +5521,7 @@ declare var CSSPerspective: {
|
|
|
5515
5521
|
*
|
|
5516
5522
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors)
|
|
5517
5523
|
*/
|
|
5518
|
-
interface CSSPositionTryDescriptors extends
|
|
5524
|
+
interface CSSPositionTryDescriptors extends CSSStyleDeclarationBase {
|
|
5519
5525
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors#instance_properties) */
|
|
5520
5526
|
"align-self": string;
|
|
5521
5527
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors#instance_properties) */
|
|
@@ -5989,7 +5995,7 @@ declare var CSSStartingStyleRule: {
|
|
|
5989
5995
|
*
|
|
5990
5996
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration)
|
|
5991
5997
|
*/
|
|
5992
|
-
interface
|
|
5998
|
+
interface CSSStyleDeclarationBase {
|
|
5993
5999
|
/**
|
|
5994
6000
|
* The **`cssText`** property of the CSSStyleDeclaration interface returns or sets the text of the element's **inline** style declaration only.
|
|
5995
6001
|
*
|
|
@@ -6041,12 +6047,15 @@ interface CSSStyleDeclaration {
|
|
|
6041
6047
|
[index: number]: string;
|
|
6042
6048
|
}
|
|
6043
6049
|
|
|
6050
|
+
interface CSSStyleDeclaration extends CSSStyleProperties {
|
|
6051
|
+
}
|
|
6052
|
+
|
|
6044
6053
|
declare var CSSStyleDeclaration: {
|
|
6045
6054
|
prototype: CSSStyleDeclaration;
|
|
6046
6055
|
new(): CSSStyleDeclaration;
|
|
6047
6056
|
};
|
|
6048
6057
|
|
|
6049
|
-
interface CSSStyleProperties extends
|
|
6058
|
+
interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
6050
6059
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */
|
|
6051
6060
|
accentColor: string;
|
|
6052
6061
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */
|
|
@@ -7411,7 +7420,7 @@ interface CSSStyleRule extends CSSGroupingRule {
|
|
|
7411
7420
|
*
|
|
7412
7421
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style)
|
|
7413
7422
|
*/
|
|
7414
|
-
get style():
|
|
7423
|
+
get style(): CSSStyleDeclaration;
|
|
7415
7424
|
set style(cssText: string);
|
|
7416
7425
|
/**
|
|
7417
7426
|
* The **`styleMap`** read-only property of the CSSStyleRule interface returns a StylePropertyMap object which provides access to the rule's property-value pairs.
|
|
@@ -8398,6 +8407,31 @@ declare var CloseEvent: {
|
|
|
8398
8407
|
new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
|
|
8399
8408
|
};
|
|
8400
8409
|
|
|
8410
|
+
/**
|
|
8411
|
+
* The **`CommandEvent`** interface represents an event notifying the user when a HTMLButtonElement element with valid HTMLButtonElement.commandForElement and HTMLButtonElement.command attributes is about to invoke an interactive element.
|
|
8412
|
+
*
|
|
8413
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent)
|
|
8414
|
+
*/
|
|
8415
|
+
interface CommandEvent extends Event {
|
|
8416
|
+
/**
|
|
8417
|
+
* The **`command`** read-only property of the CommandEvent interface returns a string containing the value of the HTMLButtonElement.command property at the time the event was dispatched.
|
|
8418
|
+
*
|
|
8419
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent/command)
|
|
8420
|
+
*/
|
|
8421
|
+
readonly command: string;
|
|
8422
|
+
/**
|
|
8423
|
+
* The **`source`** read-only property of the CommandEvent interface returns an EventTarget representing the control that invoked the given command.
|
|
8424
|
+
*
|
|
8425
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent/source)
|
|
8426
|
+
*/
|
|
8427
|
+
readonly source: Element | null;
|
|
8428
|
+
}
|
|
8429
|
+
|
|
8430
|
+
declare var CommandEvent: {
|
|
8431
|
+
prototype: CommandEvent;
|
|
8432
|
+
new(type: string, eventInitDict?: CommandEventInit): CommandEvent;
|
|
8433
|
+
};
|
|
8434
|
+
|
|
8401
8435
|
/**
|
|
8402
8436
|
* The **`Comment`** interface represents textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view.
|
|
8403
8437
|
*
|
|
@@ -10465,6 +10499,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
10465
10499
|
createEvent(eventInterface: "BlobEvent"): BlobEvent;
|
|
10466
10500
|
createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
|
|
10467
10501
|
createEvent(eventInterface: "CloseEvent"): CloseEvent;
|
|
10502
|
+
createEvent(eventInterface: "CommandEvent"): CommandEvent;
|
|
10468
10503
|
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
|
|
10469
10504
|
createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent;
|
|
10470
10505
|
createEvent(eventInterface: "CookieChangeEvent"): CookieChangeEvent;
|
|
@@ -11429,7 +11464,7 @@ interface ElementCSSInlineStyle {
|
|
|
11429
11464
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) */
|
|
11430
11465
|
readonly attributeStyleMap: StylePropertyMap;
|
|
11431
11466
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */
|
|
11432
|
-
get style():
|
|
11467
|
+
get style(): CSSStyleDeclaration;
|
|
11433
11468
|
set style(cssText: string);
|
|
11434
11469
|
}
|
|
11435
11470
|
|
|
@@ -13604,6 +13639,18 @@ declare var HTMLBodyElement: {
|
|
|
13604
13639
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement)
|
|
13605
13640
|
*/
|
|
13606
13641
|
interface HTMLButtonElement extends HTMLElement, PopoverTargetAttributes {
|
|
13642
|
+
/**
|
|
13643
|
+
* The **`command`** property of the HTMLButtonElement interface gets and sets the action to be performed on an element being controlled by this button.
|
|
13644
|
+
*
|
|
13645
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/command)
|
|
13646
|
+
*/
|
|
13647
|
+
command: string;
|
|
13648
|
+
/**
|
|
13649
|
+
* The **`commandForElement`** property of the HTMLButtonElement interface gets and sets the element to control via a button.
|
|
13650
|
+
*
|
|
13651
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/commandForElement)
|
|
13652
|
+
*/
|
|
13653
|
+
commandForElement: Element | null;
|
|
13607
13654
|
/**
|
|
13608
13655
|
* The **`HTMLButtonElement.disabled`** property indicates whether the control is disabled, meaning that it does not accept any clicks.
|
|
13609
13656
|
*
|
|
@@ -18391,6 +18438,7 @@ interface IDBDatabase extends EventTarget {
|
|
|
18391
18438
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)
|
|
18392
18439
|
*/
|
|
18393
18440
|
readonly objectStoreNames: DOMStringList;
|
|
18441
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
|
|
18394
18442
|
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
18395
18443
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */
|
|
18396
18444
|
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
@@ -23031,6 +23079,8 @@ interface ParentNode extends Node {
|
|
|
23031
23079
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/append)
|
|
23032
23080
|
*/
|
|
23033
23081
|
append(...nodes: (Node | string)[]): void;
|
|
23082
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/moveBefore) */
|
|
23083
|
+
moveBefore(node: Node, child: Node | null): void;
|
|
23034
23084
|
/**
|
|
23035
23085
|
* Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
|
|
23036
23086
|
*
|
|
@@ -23558,6 +23608,12 @@ interface PerformanceEventTiming extends PerformanceEntry {
|
|
|
23558
23608
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/cancelable)
|
|
23559
23609
|
*/
|
|
23560
23610
|
readonly cancelable: boolean;
|
|
23611
|
+
/**
|
|
23612
|
+
* The read-only **`interactionId`** property returns an ID that uniquely identifies a user interaction which triggered a series of associated events.
|
|
23613
|
+
*
|
|
23614
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/interactionId)
|
|
23615
|
+
*/
|
|
23616
|
+
readonly interactionId: number;
|
|
23561
23617
|
/**
|
|
23562
23618
|
* The read-only **`processingEnd`** property returns the time the last event handler finished executing.
|
|
23563
23619
|
*
|
|
@@ -30569,6 +30625,12 @@ interface ScreenOrientation extends EventTarget {
|
|
|
30569
30625
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type)
|
|
30570
30626
|
*/
|
|
30571
30627
|
readonly type: OrientationType;
|
|
30628
|
+
/**
|
|
30629
|
+
* The **`lock()`** method of the ScreenOrientation interface locks the orientation of the containing document to the specified orientation.
|
|
30630
|
+
*
|
|
30631
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/lock)
|
|
30632
|
+
*/
|
|
30633
|
+
lock(orientation: OrientationLockType): Promise<void>;
|
|
30572
30634
|
/**
|
|
30573
30635
|
* The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document from its default orientation.
|
|
30574
30636
|
*
|
|
@@ -37299,7 +37361,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
|
|
|
37299
37361
|
*
|
|
37300
37362
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
|
|
37301
37363
|
*/
|
|
37302
|
-
getComputedStyle(elt: Element, pseudoElt?: string | null):
|
|
37364
|
+
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
|
|
37303
37365
|
/**
|
|
37304
37366
|
* The **`getSelection()`** method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.
|
|
37305
37367
|
*
|
|
@@ -39401,7 +39463,7 @@ declare function focus(): void;
|
|
|
39401
39463
|
*
|
|
39402
39464
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
|
|
39403
39465
|
*/
|
|
39404
|
-
declare function getComputedStyle(elt: Element, pseudoElt?: string | null):
|
|
39466
|
+
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
|
|
39405
39467
|
/**
|
|
39406
39468
|
* The **`getSelection()`** method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.
|
|
39407
39469
|
*
|
|
@@ -40019,6 +40081,7 @@ type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
|
40019
40081
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
40020
40082
|
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
|
|
40021
40083
|
type OpusBitstreamFormat = "ogg" | "opus";
|
|
40084
|
+
type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
|
|
40022
40085
|
type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
|
|
40023
40086
|
type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
|
|
40024
40087
|
type OverSampleType = "2x" | "4x" | "none";
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -360,6 +360,11 @@ interface CloseEventInit extends EventInit {
|
|
|
360
360
|
wasClean?: boolean;
|
|
361
361
|
}
|
|
362
362
|
|
|
363
|
+
interface CommandEventInit extends EventInit {
|
|
364
|
+
command?: string;
|
|
365
|
+
source?: Element | null;
|
|
366
|
+
}
|
|
367
|
+
|
|
363
368
|
interface CompositionEventInit extends UIEventInit {
|
|
364
369
|
data?: string;
|
|
365
370
|
}
|
|
@@ -2361,8 +2366,8 @@ interface ULongRange {
|
|
|
2361
2366
|
}
|
|
2362
2367
|
|
|
2363
2368
|
interface URLPatternComponentResult {
|
|
2364
|
-
groups
|
|
2365
|
-
input
|
|
2369
|
+
groups: Record<string, string | undefined>;
|
|
2370
|
+
input: string;
|
|
2366
2371
|
}
|
|
2367
2372
|
|
|
2368
2373
|
interface URLPatternInit {
|
|
@@ -2382,15 +2387,15 @@ interface URLPatternOptions {
|
|
|
2382
2387
|
}
|
|
2383
2388
|
|
|
2384
2389
|
interface URLPatternResult {
|
|
2385
|
-
hash
|
|
2386
|
-
hostname
|
|
2387
|
-
inputs
|
|
2388
|
-
password
|
|
2389
|
-
pathname
|
|
2390
|
-
port
|
|
2391
|
-
protocol
|
|
2392
|
-
search
|
|
2393
|
-
username
|
|
2390
|
+
hash: URLPatternComponentResult;
|
|
2391
|
+
hostname: URLPatternComponentResult;
|
|
2392
|
+
inputs: URLPatternInput[];
|
|
2393
|
+
password: URLPatternComponentResult;
|
|
2394
|
+
pathname: URLPatternComponentResult;
|
|
2395
|
+
port: URLPatternComponentResult;
|
|
2396
|
+
protocol: URLPatternComponentResult;
|
|
2397
|
+
search: URLPatternComponentResult;
|
|
2398
|
+
username: URLPatternComponentResult;
|
|
2394
2399
|
}
|
|
2395
2400
|
|
|
2396
2401
|
interface UnderlyingByteSource {
|
|
@@ -3272,6 +3277,7 @@ interface AnimationTimeline {
|
|
|
3272
3277
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime)
|
|
3273
3278
|
*/
|
|
3274
3279
|
readonly currentTime: CSSNumberish | null;
|
|
3280
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/duration) */
|
|
3275
3281
|
readonly duration: CSSNumberish | null;
|
|
3276
3282
|
}
|
|
3277
3283
|
|
|
@@ -4818,7 +4824,7 @@ interface CSSFontFaceRule extends CSSRule {
|
|
|
4818
4824
|
*
|
|
4819
4825
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style)
|
|
4820
4826
|
*/
|
|
4821
|
-
readonly style:
|
|
4827
|
+
readonly style: CSSStyleDeclaration;
|
|
4822
4828
|
}
|
|
4823
4829
|
|
|
4824
4830
|
declare var CSSFontFaceRule: {
|
|
@@ -4986,7 +4992,7 @@ interface CSSKeyframeRule extends CSSRule {
|
|
|
4986
4992
|
*
|
|
4987
4993
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style)
|
|
4988
4994
|
*/
|
|
4989
|
-
readonly style:
|
|
4995
|
+
readonly style: CSSStyleDeclaration;
|
|
4990
4996
|
}
|
|
4991
4997
|
|
|
4992
4998
|
declare var CSSKeyframeRule: {
|
|
@@ -5319,7 +5325,7 @@ interface CSSNestedDeclarations extends CSSRule {
|
|
|
5319
5325
|
*
|
|
5320
5326
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations/style)
|
|
5321
5327
|
*/
|
|
5322
|
-
readonly style:
|
|
5328
|
+
readonly style: CSSStyleDeclaration;
|
|
5323
5329
|
}
|
|
5324
5330
|
|
|
5325
5331
|
declare var CSSNestedDeclarations: {
|
|
@@ -5432,7 +5438,7 @@ declare var CSSNumericValue: {
|
|
|
5432
5438
|
*
|
|
5433
5439
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors)
|
|
5434
5440
|
*/
|
|
5435
|
-
interface CSSPageDescriptors extends
|
|
5441
|
+
interface CSSPageDescriptors extends CSSStyleDeclarationBase {
|
|
5436
5442
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors#margin) */
|
|
5437
5443
|
margin: string;
|
|
5438
5444
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors#margin-bottom) */
|
|
@@ -5509,7 +5515,7 @@ declare var CSSPerspective: {
|
|
|
5509
5515
|
*
|
|
5510
5516
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors)
|
|
5511
5517
|
*/
|
|
5512
|
-
interface CSSPositionTryDescriptors extends
|
|
5518
|
+
interface CSSPositionTryDescriptors extends CSSStyleDeclarationBase {
|
|
5513
5519
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors#instance_properties) */
|
|
5514
5520
|
"align-self": string;
|
|
5515
5521
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors#instance_properties) */
|
|
@@ -5982,7 +5988,7 @@ declare var CSSStartingStyleRule: {
|
|
|
5982
5988
|
*
|
|
5983
5989
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration)
|
|
5984
5990
|
*/
|
|
5985
|
-
interface
|
|
5991
|
+
interface CSSStyleDeclarationBase {
|
|
5986
5992
|
/**
|
|
5987
5993
|
* The **`cssText`** property of the CSSStyleDeclaration interface returns or sets the text of the element's **inline** style declaration only.
|
|
5988
5994
|
*
|
|
@@ -6034,12 +6040,15 @@ interface CSSStyleDeclaration {
|
|
|
6034
6040
|
[index: number]: string;
|
|
6035
6041
|
}
|
|
6036
6042
|
|
|
6043
|
+
interface CSSStyleDeclaration extends CSSStyleProperties {
|
|
6044
|
+
}
|
|
6045
|
+
|
|
6037
6046
|
declare var CSSStyleDeclaration: {
|
|
6038
6047
|
prototype: CSSStyleDeclaration;
|
|
6039
6048
|
new(): CSSStyleDeclaration;
|
|
6040
6049
|
};
|
|
6041
6050
|
|
|
6042
|
-
interface CSSStyleProperties extends
|
|
6051
|
+
interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
6043
6052
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */
|
|
6044
6053
|
accentColor: string;
|
|
6045
6054
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */
|
|
@@ -7404,7 +7413,7 @@ interface CSSStyleRule extends CSSGroupingRule {
|
|
|
7404
7413
|
*
|
|
7405
7414
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style)
|
|
7406
7415
|
*/
|
|
7407
|
-
readonly style:
|
|
7416
|
+
readonly style: CSSStyleDeclaration;
|
|
7408
7417
|
/**
|
|
7409
7418
|
* The **`styleMap`** read-only property of the CSSStyleRule interface returns a StylePropertyMap object which provides access to the rule's property-value pairs.
|
|
7410
7419
|
*
|
|
@@ -8390,6 +8399,31 @@ declare var CloseEvent: {
|
|
|
8390
8399
|
new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
|
|
8391
8400
|
};
|
|
8392
8401
|
|
|
8402
|
+
/**
|
|
8403
|
+
* The **`CommandEvent`** interface represents an event notifying the user when a HTMLButtonElement element with valid HTMLButtonElement.commandForElement and HTMLButtonElement.command attributes is about to invoke an interactive element.
|
|
8404
|
+
*
|
|
8405
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent)
|
|
8406
|
+
*/
|
|
8407
|
+
interface CommandEvent extends Event {
|
|
8408
|
+
/**
|
|
8409
|
+
* The **`command`** read-only property of the CommandEvent interface returns a string containing the value of the HTMLButtonElement.command property at the time the event was dispatched.
|
|
8410
|
+
*
|
|
8411
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent/command)
|
|
8412
|
+
*/
|
|
8413
|
+
readonly command: string;
|
|
8414
|
+
/**
|
|
8415
|
+
* The **`source`** read-only property of the CommandEvent interface returns an EventTarget representing the control that invoked the given command.
|
|
8416
|
+
*
|
|
8417
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent/source)
|
|
8418
|
+
*/
|
|
8419
|
+
readonly source: Element | null;
|
|
8420
|
+
}
|
|
8421
|
+
|
|
8422
|
+
declare var CommandEvent: {
|
|
8423
|
+
prototype: CommandEvent;
|
|
8424
|
+
new(type: string, eventInitDict?: CommandEventInit): CommandEvent;
|
|
8425
|
+
};
|
|
8426
|
+
|
|
8393
8427
|
/**
|
|
8394
8428
|
* The **`Comment`** interface represents textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view.
|
|
8395
8429
|
*
|
|
@@ -10457,6 +10491,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
10457
10491
|
createEvent(eventInterface: "BlobEvent"): BlobEvent;
|
|
10458
10492
|
createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
|
|
10459
10493
|
createEvent(eventInterface: "CloseEvent"): CloseEvent;
|
|
10494
|
+
createEvent(eventInterface: "CommandEvent"): CommandEvent;
|
|
10460
10495
|
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
|
|
10461
10496
|
createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent;
|
|
10462
10497
|
createEvent(eventInterface: "CookieChangeEvent"): CookieChangeEvent;
|
|
@@ -11419,7 +11454,7 @@ interface ElementCSSInlineStyle {
|
|
|
11419
11454
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) */
|
|
11420
11455
|
readonly attributeStyleMap: StylePropertyMap;
|
|
11421
11456
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */
|
|
11422
|
-
readonly style:
|
|
11457
|
+
readonly style: CSSStyleDeclaration;
|
|
11423
11458
|
}
|
|
11424
11459
|
|
|
11425
11460
|
interface ElementContentEditable {
|
|
@@ -13591,6 +13626,18 @@ declare var HTMLBodyElement: {
|
|
|
13591
13626
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement)
|
|
13592
13627
|
*/
|
|
13593
13628
|
interface HTMLButtonElement extends HTMLElement, PopoverTargetAttributes {
|
|
13629
|
+
/**
|
|
13630
|
+
* The **`command`** property of the HTMLButtonElement interface gets and sets the action to be performed on an element being controlled by this button.
|
|
13631
|
+
*
|
|
13632
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/command)
|
|
13633
|
+
*/
|
|
13634
|
+
command: string;
|
|
13635
|
+
/**
|
|
13636
|
+
* The **`commandForElement`** property of the HTMLButtonElement interface gets and sets the element to control via a button.
|
|
13637
|
+
*
|
|
13638
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/commandForElement)
|
|
13639
|
+
*/
|
|
13640
|
+
commandForElement: Element | null;
|
|
13594
13641
|
/**
|
|
13595
13642
|
* The **`HTMLButtonElement.disabled`** property indicates whether the control is disabled, meaning that it does not accept any clicks.
|
|
13596
13643
|
*
|
|
@@ -18370,6 +18417,7 @@ interface IDBDatabase extends EventTarget {
|
|
|
18370
18417
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)
|
|
18371
18418
|
*/
|
|
18372
18419
|
readonly objectStoreNames: DOMStringList;
|
|
18420
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
|
|
18373
18421
|
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
18374
18422
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */
|
|
18375
18423
|
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
@@ -23010,6 +23058,8 @@ interface ParentNode extends Node {
|
|
|
23010
23058
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/append)
|
|
23011
23059
|
*/
|
|
23012
23060
|
append(...nodes: (Node | string)[]): void;
|
|
23061
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/moveBefore) */
|
|
23062
|
+
moveBefore(node: Node, child: Node | null): void;
|
|
23013
23063
|
/**
|
|
23014
23064
|
* Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
|
|
23015
23065
|
*
|
|
@@ -23537,6 +23587,12 @@ interface PerformanceEventTiming extends PerformanceEntry {
|
|
|
23537
23587
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/cancelable)
|
|
23538
23588
|
*/
|
|
23539
23589
|
readonly cancelable: boolean;
|
|
23590
|
+
/**
|
|
23591
|
+
* The read-only **`interactionId`** property returns an ID that uniquely identifies a user interaction which triggered a series of associated events.
|
|
23592
|
+
*
|
|
23593
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/interactionId)
|
|
23594
|
+
*/
|
|
23595
|
+
readonly interactionId: number;
|
|
23540
23596
|
/**
|
|
23541
23597
|
* The read-only **`processingEnd`** property returns the time the last event handler finished executing.
|
|
23542
23598
|
*
|
|
@@ -30547,6 +30603,12 @@ interface ScreenOrientation extends EventTarget {
|
|
|
30547
30603
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type)
|
|
30548
30604
|
*/
|
|
30549
30605
|
readonly type: OrientationType;
|
|
30606
|
+
/**
|
|
30607
|
+
* The **`lock()`** method of the ScreenOrientation interface locks the orientation of the containing document to the specified orientation.
|
|
30608
|
+
*
|
|
30609
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/lock)
|
|
30610
|
+
*/
|
|
30611
|
+
lock(orientation: OrientationLockType): Promise<void>;
|
|
30550
30612
|
/**
|
|
30551
30613
|
* The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document from its default orientation.
|
|
30552
30614
|
*
|
|
@@ -37276,7 +37338,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
|
|
|
37276
37338
|
*
|
|
37277
37339
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
|
|
37278
37340
|
*/
|
|
37279
|
-
getComputedStyle(elt: Element, pseudoElt?: string | null):
|
|
37341
|
+
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
|
|
37280
37342
|
/**
|
|
37281
37343
|
* The **`getSelection()`** method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.
|
|
37282
37344
|
*
|
|
@@ -39378,7 +39440,7 @@ declare function focus(): void;
|
|
|
39378
39440
|
*
|
|
39379
39441
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
|
|
39380
39442
|
*/
|
|
39381
|
-
declare function getComputedStyle(elt: Element, pseudoElt?: string | null):
|
|
39443
|
+
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
|
|
39382
39444
|
/**
|
|
39383
39445
|
* The **`getSelection()`** method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.
|
|
39384
39446
|
*
|
|
@@ -39996,6 +40058,7 @@ type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
|
39996
40058
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
39997
40059
|
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
|
|
39998
40060
|
type OpusBitstreamFormat = "ogg" | "opus";
|
|
40061
|
+
type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
|
|
39999
40062
|
type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
|
|
40000
40063
|
type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
|
|
40001
40064
|
type OverSampleType = "2x" | "4x" | "none";
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -360,6 +360,11 @@ interface CloseEventInit extends EventInit {
|
|
|
360
360
|
wasClean?: boolean;
|
|
361
361
|
}
|
|
362
362
|
|
|
363
|
+
interface CommandEventInit extends EventInit {
|
|
364
|
+
command?: string;
|
|
365
|
+
source?: Element | null;
|
|
366
|
+
}
|
|
367
|
+
|
|
363
368
|
interface CompositionEventInit extends UIEventInit {
|
|
364
369
|
data?: string;
|
|
365
370
|
}
|
|
@@ -2361,8 +2366,8 @@ interface ULongRange {
|
|
|
2361
2366
|
}
|
|
2362
2367
|
|
|
2363
2368
|
interface URLPatternComponentResult {
|
|
2364
|
-
groups
|
|
2365
|
-
input
|
|
2369
|
+
groups: Record<string, string | undefined>;
|
|
2370
|
+
input: string;
|
|
2366
2371
|
}
|
|
2367
2372
|
|
|
2368
2373
|
interface URLPatternInit {
|
|
@@ -2382,15 +2387,15 @@ interface URLPatternOptions {
|
|
|
2382
2387
|
}
|
|
2383
2388
|
|
|
2384
2389
|
interface URLPatternResult {
|
|
2385
|
-
hash
|
|
2386
|
-
hostname
|
|
2387
|
-
inputs
|
|
2388
|
-
password
|
|
2389
|
-
pathname
|
|
2390
|
-
port
|
|
2391
|
-
protocol
|
|
2392
|
-
search
|
|
2393
|
-
username
|
|
2390
|
+
hash: URLPatternComponentResult;
|
|
2391
|
+
hostname: URLPatternComponentResult;
|
|
2392
|
+
inputs: URLPatternInput[];
|
|
2393
|
+
password: URLPatternComponentResult;
|
|
2394
|
+
pathname: URLPatternComponentResult;
|
|
2395
|
+
port: URLPatternComponentResult;
|
|
2396
|
+
protocol: URLPatternComponentResult;
|
|
2397
|
+
search: URLPatternComponentResult;
|
|
2398
|
+
username: URLPatternComponentResult;
|
|
2394
2399
|
}
|
|
2395
2400
|
|
|
2396
2401
|
interface UnderlyingByteSource {
|
|
@@ -3272,6 +3277,7 @@ interface AnimationTimeline {
|
|
|
3272
3277
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime)
|
|
3273
3278
|
*/
|
|
3274
3279
|
readonly currentTime: CSSNumberish | null;
|
|
3280
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/duration) */
|
|
3275
3281
|
readonly duration: CSSNumberish | null;
|
|
3276
3282
|
}
|
|
3277
3283
|
|
|
@@ -4818,7 +4824,7 @@ interface CSSFontFaceRule extends CSSRule {
|
|
|
4818
4824
|
*
|
|
4819
4825
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style)
|
|
4820
4826
|
*/
|
|
4821
|
-
get style():
|
|
4827
|
+
get style(): CSSStyleDeclaration;
|
|
4822
4828
|
set style(cssText: string);
|
|
4823
4829
|
}
|
|
4824
4830
|
|
|
@@ -4988,7 +4994,7 @@ interface CSSKeyframeRule extends CSSRule {
|
|
|
4988
4994
|
*
|
|
4989
4995
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style)
|
|
4990
4996
|
*/
|
|
4991
|
-
get style():
|
|
4997
|
+
get style(): CSSStyleDeclaration;
|
|
4992
4998
|
set style(cssText: string);
|
|
4993
4999
|
}
|
|
4994
5000
|
|
|
@@ -5323,7 +5329,7 @@ interface CSSNestedDeclarations extends CSSRule {
|
|
|
5323
5329
|
*
|
|
5324
5330
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations/style)
|
|
5325
5331
|
*/
|
|
5326
|
-
get style():
|
|
5332
|
+
get style(): CSSStyleDeclaration;
|
|
5327
5333
|
set style(cssText: string);
|
|
5328
5334
|
}
|
|
5329
5335
|
|
|
@@ -5437,7 +5443,7 @@ declare var CSSNumericValue: {
|
|
|
5437
5443
|
*
|
|
5438
5444
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors)
|
|
5439
5445
|
*/
|
|
5440
|
-
interface CSSPageDescriptors extends
|
|
5446
|
+
interface CSSPageDescriptors extends CSSStyleDeclarationBase {
|
|
5441
5447
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors#margin) */
|
|
5442
5448
|
margin: string;
|
|
5443
5449
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageDescriptors#margin-bottom) */
|
|
@@ -5515,7 +5521,7 @@ declare var CSSPerspective: {
|
|
|
5515
5521
|
*
|
|
5516
5522
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors)
|
|
5517
5523
|
*/
|
|
5518
|
-
interface CSSPositionTryDescriptors extends
|
|
5524
|
+
interface CSSPositionTryDescriptors extends CSSStyleDeclarationBase {
|
|
5519
5525
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors#instance_properties) */
|
|
5520
5526
|
"align-self": string;
|
|
5521
5527
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryDescriptors#instance_properties) */
|
|
@@ -5989,7 +5995,7 @@ declare var CSSStartingStyleRule: {
|
|
|
5989
5995
|
*
|
|
5990
5996
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration)
|
|
5991
5997
|
*/
|
|
5992
|
-
interface
|
|
5998
|
+
interface CSSStyleDeclarationBase {
|
|
5993
5999
|
/**
|
|
5994
6000
|
* The **`cssText`** property of the CSSStyleDeclaration interface returns or sets the text of the element's **inline** style declaration only.
|
|
5995
6001
|
*
|
|
@@ -6041,12 +6047,15 @@ interface CSSStyleDeclaration {
|
|
|
6041
6047
|
[index: number]: string;
|
|
6042
6048
|
}
|
|
6043
6049
|
|
|
6050
|
+
interface CSSStyleDeclaration extends CSSStyleProperties {
|
|
6051
|
+
}
|
|
6052
|
+
|
|
6044
6053
|
declare var CSSStyleDeclaration: {
|
|
6045
6054
|
prototype: CSSStyleDeclaration;
|
|
6046
6055
|
new(): CSSStyleDeclaration;
|
|
6047
6056
|
};
|
|
6048
6057
|
|
|
6049
|
-
interface CSSStyleProperties extends
|
|
6058
|
+
interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
6050
6059
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */
|
|
6051
6060
|
accentColor: string;
|
|
6052
6061
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */
|
|
@@ -7411,7 +7420,7 @@ interface CSSStyleRule extends CSSGroupingRule {
|
|
|
7411
7420
|
*
|
|
7412
7421
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style)
|
|
7413
7422
|
*/
|
|
7414
|
-
get style():
|
|
7423
|
+
get style(): CSSStyleDeclaration;
|
|
7415
7424
|
set style(cssText: string);
|
|
7416
7425
|
/**
|
|
7417
7426
|
* The **`styleMap`** read-only property of the CSSStyleRule interface returns a StylePropertyMap object which provides access to the rule's property-value pairs.
|
|
@@ -8398,6 +8407,31 @@ declare var CloseEvent: {
|
|
|
8398
8407
|
new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
|
|
8399
8408
|
};
|
|
8400
8409
|
|
|
8410
|
+
/**
|
|
8411
|
+
* The **`CommandEvent`** interface represents an event notifying the user when a HTMLButtonElement element with valid HTMLButtonElement.commandForElement and HTMLButtonElement.command attributes is about to invoke an interactive element.
|
|
8412
|
+
*
|
|
8413
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent)
|
|
8414
|
+
*/
|
|
8415
|
+
interface CommandEvent extends Event {
|
|
8416
|
+
/**
|
|
8417
|
+
* The **`command`** read-only property of the CommandEvent interface returns a string containing the value of the HTMLButtonElement.command property at the time the event was dispatched.
|
|
8418
|
+
*
|
|
8419
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent/command)
|
|
8420
|
+
*/
|
|
8421
|
+
readonly command: string;
|
|
8422
|
+
/**
|
|
8423
|
+
* The **`source`** read-only property of the CommandEvent interface returns an EventTarget representing the control that invoked the given command.
|
|
8424
|
+
*
|
|
8425
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent/source)
|
|
8426
|
+
*/
|
|
8427
|
+
readonly source: Element | null;
|
|
8428
|
+
}
|
|
8429
|
+
|
|
8430
|
+
declare var CommandEvent: {
|
|
8431
|
+
prototype: CommandEvent;
|
|
8432
|
+
new(type: string, eventInitDict?: CommandEventInit): CommandEvent;
|
|
8433
|
+
};
|
|
8434
|
+
|
|
8401
8435
|
/**
|
|
8402
8436
|
* The **`Comment`** interface represents textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view.
|
|
8403
8437
|
*
|
|
@@ -10465,6 +10499,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
10465
10499
|
createEvent(eventInterface: "BlobEvent"): BlobEvent;
|
|
10466
10500
|
createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
|
|
10467
10501
|
createEvent(eventInterface: "CloseEvent"): CloseEvent;
|
|
10502
|
+
createEvent(eventInterface: "CommandEvent"): CommandEvent;
|
|
10468
10503
|
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
|
|
10469
10504
|
createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent;
|
|
10470
10505
|
createEvent(eventInterface: "CookieChangeEvent"): CookieChangeEvent;
|
|
@@ -11429,7 +11464,7 @@ interface ElementCSSInlineStyle {
|
|
|
11429
11464
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) */
|
|
11430
11465
|
readonly attributeStyleMap: StylePropertyMap;
|
|
11431
11466
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */
|
|
11432
|
-
get style():
|
|
11467
|
+
get style(): CSSStyleDeclaration;
|
|
11433
11468
|
set style(cssText: string);
|
|
11434
11469
|
}
|
|
11435
11470
|
|
|
@@ -13604,6 +13639,18 @@ declare var HTMLBodyElement: {
|
|
|
13604
13639
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement)
|
|
13605
13640
|
*/
|
|
13606
13641
|
interface HTMLButtonElement extends HTMLElement, PopoverTargetAttributes {
|
|
13642
|
+
/**
|
|
13643
|
+
* The **`command`** property of the HTMLButtonElement interface gets and sets the action to be performed on an element being controlled by this button.
|
|
13644
|
+
*
|
|
13645
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/command)
|
|
13646
|
+
*/
|
|
13647
|
+
command: string;
|
|
13648
|
+
/**
|
|
13649
|
+
* The **`commandForElement`** property of the HTMLButtonElement interface gets and sets the element to control via a button.
|
|
13650
|
+
*
|
|
13651
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/commandForElement)
|
|
13652
|
+
*/
|
|
13653
|
+
commandForElement: Element | null;
|
|
13607
13654
|
/**
|
|
13608
13655
|
* The **`HTMLButtonElement.disabled`** property indicates whether the control is disabled, meaning that it does not accept any clicks.
|
|
13609
13656
|
*
|
|
@@ -18391,6 +18438,7 @@ interface IDBDatabase extends EventTarget {
|
|
|
18391
18438
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)
|
|
18392
18439
|
*/
|
|
18393
18440
|
readonly objectStoreNames: DOMStringList;
|
|
18441
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
|
|
18394
18442
|
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
18395
18443
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */
|
|
18396
18444
|
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
@@ -23031,6 +23079,8 @@ interface ParentNode extends Node {
|
|
|
23031
23079
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/append)
|
|
23032
23080
|
*/
|
|
23033
23081
|
append(...nodes: (Node | string)[]): void;
|
|
23082
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/moveBefore) */
|
|
23083
|
+
moveBefore(node: Node, child: Node | null): void;
|
|
23034
23084
|
/**
|
|
23035
23085
|
* Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
|
|
23036
23086
|
*
|
|
@@ -23558,6 +23608,12 @@ interface PerformanceEventTiming extends PerformanceEntry {
|
|
|
23558
23608
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/cancelable)
|
|
23559
23609
|
*/
|
|
23560
23610
|
readonly cancelable: boolean;
|
|
23611
|
+
/**
|
|
23612
|
+
* The read-only **`interactionId`** property returns an ID that uniquely identifies a user interaction which triggered a series of associated events.
|
|
23613
|
+
*
|
|
23614
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/interactionId)
|
|
23615
|
+
*/
|
|
23616
|
+
readonly interactionId: number;
|
|
23561
23617
|
/**
|
|
23562
23618
|
* The read-only **`processingEnd`** property returns the time the last event handler finished executing.
|
|
23563
23619
|
*
|
|
@@ -30569,6 +30625,12 @@ interface ScreenOrientation extends EventTarget {
|
|
|
30569
30625
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type)
|
|
30570
30626
|
*/
|
|
30571
30627
|
readonly type: OrientationType;
|
|
30628
|
+
/**
|
|
30629
|
+
* The **`lock()`** method of the ScreenOrientation interface locks the orientation of the containing document to the specified orientation.
|
|
30630
|
+
*
|
|
30631
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/lock)
|
|
30632
|
+
*/
|
|
30633
|
+
lock(orientation: OrientationLockType): Promise<void>;
|
|
30572
30634
|
/**
|
|
30573
30635
|
* The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document from its default orientation.
|
|
30574
30636
|
*
|
|
@@ -37299,7 +37361,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
|
|
|
37299
37361
|
*
|
|
37300
37362
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
|
|
37301
37363
|
*/
|
|
37302
|
-
getComputedStyle(elt: Element, pseudoElt?: string | null):
|
|
37364
|
+
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
|
|
37303
37365
|
/**
|
|
37304
37366
|
* The **`getSelection()`** method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.
|
|
37305
37367
|
*
|
|
@@ -39401,7 +39463,7 @@ declare function focus(): void;
|
|
|
39401
39463
|
*
|
|
39402
39464
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
|
|
39403
39465
|
*/
|
|
39404
|
-
declare function getComputedStyle(elt: Element, pseudoElt?: string | null):
|
|
39466
|
+
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
|
|
39405
39467
|
/**
|
|
39406
39468
|
* The **`getSelection()`** method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.
|
|
39407
39469
|
*
|
|
@@ -40019,6 +40081,7 @@ type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
|
40019
40081
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
40020
40082
|
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
|
|
40021
40083
|
type OpusBitstreamFormat = "ogg" | "opus";
|
|
40084
|
+
type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
|
|
40022
40085
|
type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
|
|
40023
40086
|
type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
|
|
40024
40087
|
type OverSampleType = "2x" | "4x" | "none";
|