Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10577,7 +10577,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock)
*/
exitPointerLock(): void;
getElementById(elementId: string): HTMLElement | null;
getElementById<T extends HTMLElement = HTMLElement>(elementId: string): T | null;
/**
* The **`getElementsByClassName`** method of Document interface returns an array-like object of all child elements which have all of the given class name(s).
*
Expand Down
2 changes: 1 addition & 1 deletion baselines/ts5.5/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10569,7 +10569,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock)
*/
exitPointerLock(): void;
getElementById(elementId: string): HTMLElement | null;
getElementById<T extends HTMLElement = HTMLElement>(elementId: string): T | null;
/**
* The **`getElementsByClassName`** method of Document interface returns an array-like object of all child elements which have all of the given class name(s).
*
Expand Down
2 changes: 1 addition & 1 deletion baselines/ts5.6/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10577,7 +10577,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock)
*/
exitPointerLock(): void;
getElementById(elementId: string): HTMLElement | null;
getElementById<T extends HTMLElement = HTMLElement>(elementId: string): T | null;
/**
* The **`getElementsByClassName`** method of Document interface returns an array-like object of all child elements which have all of the given class name(s).
*
Expand Down
2 changes: 1 addition & 1 deletion inputfiles/overridingTypes.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@
"getElementById": {
"name": "getElementById",
"overrideSignatures": [
"getElementById(elementId: string): HTMLElement | null"
"getElementById<T extends HTMLElement = HTMLElement>(elementId: string): T | null"
]
},
"getElementsByTagNameNS": {
Expand Down