Skip to content

Commit ec20095

Browse files
committed
extends HTMLElement
1 parent 1efc911 commit ec20095

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10577,7 +10577,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
1057710577
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock)
1057810578
*/
1057910579
exitPointerLock(): void;
10580-
getElementById<T = HTMLElement>(elementId: string): T | null;
10580+
getElementById<T extends HTMLElement = HTMLElement>(elementId: string): T | null;
1058110581
/**
1058210582
* The **`getElementsByClassName`** method of Document interface returns an array-like object of all child elements which have all of the given class name(s).
1058310583
*

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10569,7 +10569,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
1056910569
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock)
1057010570
*/
1057110571
exitPointerLock(): void;
10572-
getElementById<T = HTMLElement>(elementId: string): T | null;
10572+
getElementById<T extends HTMLElement = HTMLElement>(elementId: string): T | null;
1057310573
/**
1057410574
* The **`getElementsByClassName`** method of Document interface returns an array-like object of all child elements which have all of the given class name(s).
1057510575
*

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10577,7 +10577,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
1057710577
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock)
1057810578
*/
1057910579
exitPointerLock(): void;
10580-
getElementById<T = HTMLElement>(elementId: string): T | null;
10580+
getElementById<T extends HTMLElement = HTMLElement>(elementId: string): T | null;
1058110581
/**
1058210582
* The **`getElementsByClassName`** method of Document interface returns an array-like object of all child elements which have all of the given class name(s).
1058310583
*

inputfiles/overridingTypes.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@
654654
"getElementById": {
655655
"name": "getElementById",
656656
"overrideSignatures": [
657-
"getElementById<T = HTMLElement>(elementId: string): T | null"
657+
"getElementById<T extends HTMLElement = HTMLElement>(elementId: string): T | null"
658658
]
659659
},
660660
"getElementsByTagNameNS": {

0 commit comments

Comments
 (0)