Skip to content

Commit 850b7eb

Browse files
authored
Adds aliases for renamed HTML elements (#108)
* Adds aliases for re-named HTML elements * Baselines * Deprecate properly and only do it on the right scope * Delete deprecatedInterfaceAliases.json
1 parent 7b2675f commit 850b7eb

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

baselines/dom.generated.d.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8315,6 +8315,14 @@ declare var HTMLTableColElement: {
83158315
new(): HTMLTableColElement;
83168316
};
83178317

8318+
/** @deprecated - prefer HTMLTableCellElement */
8319+
interface HTMLTableDataCellElement extends HTMLTableCellElement {
8320+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
8321+
addEventListener(type: string, listener: EventListener, options?: boolean | AddEventListenerOptions): void;
8322+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
8323+
removeEventListener(type: string, listener: EventListener, options?: boolean | EventListenerOptions): void;
8324+
}
8325+
83188326
/** Provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document. */
83198327
interface HTMLTableElement extends HTMLElement {
83208328
/**
@@ -8428,6 +8436,14 @@ declare var HTMLTableElement: {
84288436
new(): HTMLTableElement;
84298437
};
84308438

8439+
/** @deprecated - prefer HTMLTableCellElement */
8440+
interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
8441+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
8442+
addEventListener(type: string, listener: EventListener, options?: boolean | AddEventListenerOptions): void;
8443+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
8444+
removeEventListener(type: string, listener: EventListener, options?: boolean | EventListenerOptions): void;
8445+
}
8446+
84318447
/** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table. */
84328448
interface HTMLTableRowElement extends HTMLElement {
84338449
/**

inputfiles/addedTypes.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,20 @@
282282
}
283283
}
284284
},
285+
"HTMLTableDataCellElement": {
286+
"name": "HTMLTableDataCellElement",
287+
"extends": "HTMLTableCellElement",
288+
"noInterfaceObject": true,
289+
"comment": "@deprecated - prefer HTMLTableCellElement",
290+
"exposed": "Window"
291+
},
292+
"HTMLTableHeaderCellElement": {
293+
"name": "HTMLTableHeaderCellElement",
294+
"extends": "HTMLTableCellElement",
295+
"noInterfaceObject": true,
296+
"comment": "@deprecated - prefer HTMLTableCellElement",
297+
"exposed": "Window"
298+
},
285299
"HTMLMediaElement": {
286300
"events": {
287301
"event": [

0 commit comments

Comments
 (0)