@@ -595,7 +595,7 @@ interface ImageEncodeOptions {
595
595
}
596
596
597
597
interface ImportMeta {
598
- url? : string;
598
+ url: string;
599
599
}
600
600
601
601
interface InputEventInit extends UIEventInit {
@@ -4830,11 +4830,11 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
4830
4830
* Returns a reference to the first object with the specified value of the ID attribute.
4831
4831
* @param elementId String that specifies the ID value.
4832
4832
*/
4833
- getElementById<E extends Element = HTMLElement> (elementId: string): E | null;
4833
+ getElementById(elementId: string): HTMLElement | null;
4834
4834
/**
4835
4835
* Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
4836
4836
*/
4837
- getElementsByClassName<E extends Element = HTMLElement> (classNames: string): HTMLCollectionOf<E >;
4837
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element >;
4838
4838
/**
4839
4839
* Gets a collection of objects based on the value of the NAME or ID attribute.
4840
4840
* @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.
@@ -5030,7 +5030,7 @@ interface DocumentEvent {
5030
5030
/** A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made. */
5031
5031
interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
5032
5032
readonly ownerDocument: Document;
5033
- getElementById<E extends Element = HTMLElement> (elementId: string): E | null;
5033
+ getElementById(elementId: string): HTMLElement | null;
5034
5034
}
5035
5035
5036
5036
declare var DocumentFragment: {
@@ -5216,7 +5216,7 @@ interface Element extends Node, Animatable, ChildNode, InnerHTML, NonDocumentTyp
5216
5216
/**
5217
5217
* Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
5218
5218
*/
5219
- getElementsByClassName<E extends Element = HTMLElement> (classNames: string): HTMLCollectionOf<E >;
5219
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element >;
5220
5220
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
5221
5221
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
5222
5222
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
@@ -6671,7 +6671,6 @@ interface HTMLElement extends Element, DocumentAndElementEventHandlers, ElementC
6671
6671
readonly offsetParent: Element | null;
6672
6672
readonly offsetTop: number;
6673
6673
readonly offsetWidth: number;
6674
- readonly parentElement: HTMLElement | null;
6675
6674
spellcheck: boolean;
6676
6675
title: string;
6677
6676
translate: boolean;
@@ -10865,7 +10864,7 @@ interface Node extends EventTarget {
10865
10864
/**
10866
10865
* Returns the parent element.
10867
10866
*/
10868
- readonly parentElement: Element | null;
10867
+ readonly parentElement: HTMLElement | null;
10869
10868
/**
10870
10869
* Returns the parent.
10871
10870
*/
@@ -11123,7 +11122,7 @@ interface NonElementParentNode {
11123
11122
/**
11124
11123
* Returns the first element within node's descendants whose ID is elementId.
11125
11124
*/
11126
- getElementById<E extends Element = HTMLElement> (elementId: string): E | null;
11125
+ getElementById(elementId: string): Element | null;
11127
11126
}
11128
11127
11129
11128
interface NotificationEventMap {
@@ -13052,9 +13051,7 @@ interface SVGElement extends Element, DocumentAndElementEventHandlers, DocumentA
13052
13051
/** @deprecated */
13053
13052
readonly className: any;
13054
13053
readonly ownerSVGElement: SVGSVGElement | null;
13055
- readonly parentElement: SVGElement | null;
13056
13054
readonly viewportElement: SVGElement | null;
13057
- getElementsByClassName<E extends Element = SVGElement>(classNames: string): HTMLCollectionOf<E>;
13058
13055
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
13059
13056
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
13060
13057
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -13642,7 +13639,6 @@ interface SVGForeignObjectElement extends SVGGraphicsElement {
13642
13639
readonly width: SVGAnimatedLength;
13643
13640
readonly x: SVGAnimatedLength;
13644
13641
readonly y: SVGAnimatedLength;
13645
- getElementsByClassName<E extends Element = HTMLElement>(classNames: string): HTMLCollectionOf<E>;
13646
13642
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
13647
13643
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
13648
13644
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -14446,7 +14442,7 @@ interface SVGSVGElement extends SVGGraphicsElement, DocumentEvent, SVGFitToViewB
14446
14442
forceRedraw(): void;
14447
14443
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
14448
14444
getCurrentTime(): number;
14449
- getElementById<E extends Element = HTMLElement> (elementId: string): E | null ;
14445
+ getElementById(elementId: string): Element ;
14450
14446
getEnclosureList(rect: SVGRect, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
14451
14447
getIntersectionList(rect: SVGRect, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
14452
14448
pauseAnimations(): void;
0 commit comments