Skip to content

Commit 2aa51ae

Browse files
authored
Co-authored-by: saschanaz <[email protected]>
1 parent 246360b commit 2aa51ae

15 files changed

+168
-13
lines changed

baselines/dom.generated.d.ts

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,11 @@ interface CloseEventInit extends EventInit {
357357
wasClean?: boolean;
358358
}
359359

360+
interface CommandEventInit extends EventInit {
361+
command?: string;
362+
source?: Element | null;
363+
}
364+
360365
interface CompositionEventInit extends UIEventInit {
361366
data?: string;
362367
}
@@ -8395,6 +8400,31 @@ declare var CloseEvent: {
83958400
new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
83968401
};
83978402

8403+
/**
8404+
* 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.
8405+
*
8406+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent)
8407+
*/
8408+
interface CommandEvent extends Event {
8409+
/**
8410+
* 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.
8411+
*
8412+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent/command)
8413+
*/
8414+
readonly command: string;
8415+
/**
8416+
* The **`source`** read-only property of the CommandEvent interface returns an EventTarget representing the control that invoked the given command.
8417+
*
8418+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent/source)
8419+
*/
8420+
readonly source: Element | null;
8421+
}
8422+
8423+
declare var CommandEvent: {
8424+
prototype: CommandEvent;
8425+
new(type: string, eventInitDict?: CommandEventInit): CommandEvent;
8426+
};
8427+
83988428
/**
83998429
* 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.
84008430
*
@@ -10462,6 +10492,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
1046210492
createEvent(eventInterface: "BlobEvent"): BlobEvent;
1046310493
createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
1046410494
createEvent(eventInterface: "CloseEvent"): CloseEvent;
10495+
createEvent(eventInterface: "CommandEvent"): CommandEvent;
1046510496
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
1046610497
createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent;
1046710498
createEvent(eventInterface: "CookieChangeEvent"): CookieChangeEvent;
@@ -13601,6 +13632,18 @@ declare var HTMLBodyElement: {
1360113632
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement)
1360213633
*/
1360313634
interface HTMLButtonElement extends HTMLElement, PopoverTargetAttributes {
13635+
/**
13636+
* The **`command`** property of the HTMLButtonElement interface gets and sets the action to be performed on an element being controlled by this button.
13637+
*
13638+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/command)
13639+
*/
13640+
command: string;
13641+
/**
13642+
* The **`commandForElement`** property of the HTMLButtonElement interface gets and sets the element to control via a button.
13643+
*
13644+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/commandForElement)
13645+
*/
13646+
commandForElement: Element | null;
1360413647
/**
1360513648
* The **`HTMLButtonElement.disabled`** property indicates whether the control is disabled, meaning that it does not accept any clicks.
1360613649
*
@@ -18388,6 +18431,7 @@ interface IDBDatabase extends EventTarget {
1838818431
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)
1838918432
*/
1839018433
readonly objectStoreNames: DOMStringList;
18434+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
1839118435
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
1839218436
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */
1839318437
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
@@ -23028,6 +23072,8 @@ interface ParentNode extends Node {
2302823072
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/append)
2302923073
*/
2303023074
append(...nodes: (Node | string)[]): void;
23075+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/moveBefore) */
23076+
moveBefore(node: Node, child: Node | null): void;
2303123077
/**
2303223078
* Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
2303323079
*
@@ -23555,6 +23601,12 @@ interface PerformanceEventTiming extends PerformanceEntry {
2355523601
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/cancelable)
2355623602
*/
2355723603
readonly cancelable: boolean;
23604+
/**
23605+
* The read-only **`interactionId`** property returns an ID that uniquely identifies a user interaction which triggered a series of associated events.
23606+
*
23607+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/interactionId)
23608+
*/
23609+
readonly interactionId: number;
2355823610
/**
2355923611
* The read-only **`processingEnd`** property returns the time the last event handler finished executing.
2356023612
*

baselines/serviceworker.generated.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4337,6 +4337,7 @@ interface IDBDatabase extends EventTarget {
43374337
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)
43384338
*/
43394339
readonly objectStoreNames: DOMStringList;
4340+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
43404341
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
43414342
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */
43424343
onclose: ((this: IDBDatabase, ev: Event) => any) | null;

baselines/sharedworker.generated.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4020,6 +4020,7 @@ interface IDBDatabase extends EventTarget {
40204020
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)
40214021
*/
40224022
readonly objectStoreNames: DOMStringList;
4023+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
40234024
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
40244025
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */
40254026
onclose: ((this: IDBDatabase, ev: Event) => any) | null;

baselines/ts5.5/dom.generated.d.ts

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,11 @@ interface CloseEventInit extends EventInit {
357357
wasClean?: boolean;
358358
}
359359

360+
interface CommandEventInit extends EventInit {
361+
command?: string;
362+
source?: Element | null;
363+
}
364+
360365
interface CompositionEventInit extends UIEventInit {
361366
data?: string;
362367
}
@@ -8387,6 +8392,31 @@ declare var CloseEvent: {
83878392
new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
83888393
};
83898394

8395+
/**
8396+
* 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.
8397+
*
8398+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent)
8399+
*/
8400+
interface CommandEvent extends Event {
8401+
/**
8402+
* 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.
8403+
*
8404+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent/command)
8405+
*/
8406+
readonly command: string;
8407+
/**
8408+
* The **`source`** read-only property of the CommandEvent interface returns an EventTarget representing the control that invoked the given command.
8409+
*
8410+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent/source)
8411+
*/
8412+
readonly source: Element | null;
8413+
}
8414+
8415+
declare var CommandEvent: {
8416+
prototype: CommandEvent;
8417+
new(type: string, eventInitDict?: CommandEventInit): CommandEvent;
8418+
};
8419+
83908420
/**
83918421
* 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.
83928422
*
@@ -10454,6 +10484,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
1045410484
createEvent(eventInterface: "BlobEvent"): BlobEvent;
1045510485
createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
1045610486
createEvent(eventInterface: "CloseEvent"): CloseEvent;
10487+
createEvent(eventInterface: "CommandEvent"): CommandEvent;
1045710488
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
1045810489
createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent;
1045910490
createEvent(eventInterface: "CookieChangeEvent"): CookieChangeEvent;
@@ -13588,6 +13619,18 @@ declare var HTMLBodyElement: {
1358813619
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement)
1358913620
*/
1359013621
interface HTMLButtonElement extends HTMLElement, PopoverTargetAttributes {
13622+
/**
13623+
* The **`command`** property of the HTMLButtonElement interface gets and sets the action to be performed on an element being controlled by this button.
13624+
*
13625+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/command)
13626+
*/
13627+
command: string;
13628+
/**
13629+
* The **`commandForElement`** property of the HTMLButtonElement interface gets and sets the element to control via a button.
13630+
*
13631+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/commandForElement)
13632+
*/
13633+
commandForElement: Element | null;
1359113634
/**
1359213635
* The **`HTMLButtonElement.disabled`** property indicates whether the control is disabled, meaning that it does not accept any clicks.
1359313636
*
@@ -18367,6 +18410,7 @@ interface IDBDatabase extends EventTarget {
1836718410
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)
1836818411
*/
1836918412
readonly objectStoreNames: DOMStringList;
18413+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
1837018414
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
1837118415
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */
1837218416
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
@@ -23007,6 +23051,8 @@ interface ParentNode extends Node {
2300723051
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/append)
2300823052
*/
2300923053
append(...nodes: (Node | string)[]): void;
23054+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/moveBefore) */
23055+
moveBefore(node: Node, child: Node | null): void;
2301023056
/**
2301123057
* Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
2301223058
*
@@ -23534,6 +23580,12 @@ interface PerformanceEventTiming extends PerformanceEntry {
2353423580
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/cancelable)
2353523581
*/
2353623582
readonly cancelable: boolean;
23583+
/**
23584+
* The read-only **`interactionId`** property returns an ID that uniquely identifies a user interaction which triggered a series of associated events.
23585+
*
23586+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/interactionId)
23587+
*/
23588+
readonly interactionId: number;
2353723589
/**
2353823590
* The read-only **`processingEnd`** property returns the time the last event handler finished executing.
2353923591
*

baselines/ts5.5/serviceworker.generated.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4337,6 +4337,7 @@ interface IDBDatabase extends EventTarget {
43374337
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)
43384338
*/
43394339
readonly objectStoreNames: DOMStringList;
4340+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
43404341
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
43414342
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */
43424343
onclose: ((this: IDBDatabase, ev: Event) => any) | null;

baselines/ts5.5/sharedworker.generated.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4020,6 +4020,7 @@ interface IDBDatabase extends EventTarget {
40204020
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)
40214021
*/
40224022
readonly objectStoreNames: DOMStringList;
4023+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
40234024
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
40244025
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */
40254026
onclose: ((this: IDBDatabase, ev: Event) => any) | null;

baselines/ts5.5/webworker.generated.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5029,6 +5029,7 @@ interface IDBDatabase extends EventTarget {
50295029
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)
50305030
*/
50315031
readonly objectStoreNames: DOMStringList;
5032+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
50325033
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
50335034
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */
50345035
onclose: ((this: IDBDatabase, ev: Event) => any) | null;

baselines/ts5.6/dom.generated.d.ts

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,11 @@ interface CloseEventInit extends EventInit {
357357
wasClean?: boolean;
358358
}
359359

360+
interface CommandEventInit extends EventInit {
361+
command?: string;
362+
source?: Element | null;
363+
}
364+
360365
interface CompositionEventInit extends UIEventInit {
361366
data?: string;
362367
}
@@ -8395,6 +8400,31 @@ declare var CloseEvent: {
83958400
new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
83968401
};
83978402

8403+
/**
8404+
* 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.
8405+
*
8406+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent)
8407+
*/
8408+
interface CommandEvent extends Event {
8409+
/**
8410+
* 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.
8411+
*
8412+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent/command)
8413+
*/
8414+
readonly command: string;
8415+
/**
8416+
* The **`source`** read-only property of the CommandEvent interface returns an EventTarget representing the control that invoked the given command.
8417+
*
8418+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent/source)
8419+
*/
8420+
readonly source: Element | null;
8421+
}
8422+
8423+
declare var CommandEvent: {
8424+
prototype: CommandEvent;
8425+
new(type: string, eventInitDict?: CommandEventInit): CommandEvent;
8426+
};
8427+
83988428
/**
83998429
* 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.
84008430
*
@@ -10462,6 +10492,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
1046210492
createEvent(eventInterface: "BlobEvent"): BlobEvent;
1046310493
createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
1046410494
createEvent(eventInterface: "CloseEvent"): CloseEvent;
10495+
createEvent(eventInterface: "CommandEvent"): CommandEvent;
1046510496
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
1046610497
createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent;
1046710498
createEvent(eventInterface: "CookieChangeEvent"): CookieChangeEvent;
@@ -13601,6 +13632,18 @@ declare var HTMLBodyElement: {
1360113632
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement)
1360213633
*/
1360313634
interface HTMLButtonElement extends HTMLElement, PopoverTargetAttributes {
13635+
/**
13636+
* The **`command`** property of the HTMLButtonElement interface gets and sets the action to be performed on an element being controlled by this button.
13637+
*
13638+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/command)
13639+
*/
13640+
command: string;
13641+
/**
13642+
* The **`commandForElement`** property of the HTMLButtonElement interface gets and sets the element to control via a button.
13643+
*
13644+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/commandForElement)
13645+
*/
13646+
commandForElement: Element | null;
1360413647
/**
1360513648
* The **`HTMLButtonElement.disabled`** property indicates whether the control is disabled, meaning that it does not accept any clicks.
1360613649
*
@@ -18388,6 +18431,7 @@ interface IDBDatabase extends EventTarget {
1838818431
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)
1838918432
*/
1839018433
readonly objectStoreNames: DOMStringList;
18434+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
1839118435
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
1839218436
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */
1839318437
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
@@ -23028,6 +23072,8 @@ interface ParentNode extends Node {
2302823072
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/append)
2302923073
*/
2303023074
append(...nodes: (Node | string)[]): void;
23075+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/moveBefore) */
23076+
moveBefore(node: Node, child: Node | null): void;
2303123077
/**
2303223078
* Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
2303323079
*
@@ -23555,6 +23601,12 @@ interface PerformanceEventTiming extends PerformanceEntry {
2355523601
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/cancelable)
2355623602
*/
2355723603
readonly cancelable: boolean;
23604+
/**
23605+
* The read-only **`interactionId`** property returns an ID that uniquely identifies a user interaction which triggered a series of associated events.
23606+
*
23607+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/interactionId)
23608+
*/
23609+
readonly interactionId: number;
2355823610
/**
2355923611
* The read-only **`processingEnd`** property returns the time the last event handler finished executing.
2356023612
*

baselines/ts5.6/serviceworker.generated.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4337,6 +4337,7 @@ interface IDBDatabase extends EventTarget {
43374337
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)
43384338
*/
43394339
readonly objectStoreNames: DOMStringList;
4340+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
43404341
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
43414342
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */
43424343
onclose: ((this: IDBDatabase, ev: Event) => any) | null;

baselines/ts5.6/sharedworker.generated.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4020,6 +4020,7 @@ interface IDBDatabase extends EventTarget {
40204020
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)
40214021
*/
40224022
readonly objectStoreNames: DOMStringList;
4023+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
40234024
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
40244025
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */
40254026
onclose: ((this: IDBDatabase, ev: Event) => any) | null;

0 commit comments

Comments
 (0)