@@ -3208,7 +3208,7 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven
32083208 * Gets or sets the version attribute specified in the declaration of an XML document.
32093209 */
32103210 xmlVersion: string | null;
3211- adoptNode(source: Node ): Node ;
3211+ adoptNode<T extends Node> (source: T ): T ;
32123212 captureEvents(): void;
32133213 caretRangeFromPoint(x: number, y: number): Range;
32143214 clear(): void;
@@ -3385,7 +3385,7 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven
33853385 * Gets a value indicating whether the object currently has focus.
33863386 */
33873387 hasFocus(): boolean;
3388- importNode(importedNode: Node , deep: boolean): Node ;
3388+ importNode<T extends Node> (importedNode: T , deep: boolean): T ;
33893389 msElementsFromPoint(x: number, y: number): NodeListOf<Element>;
33903390 msElementsFromRect(left: number, top: number, width: number, height: number): NodeListOf<Element>;
33913391 /**
@@ -8254,15 +8254,15 @@ interface Node extends EventTarget {
82548254 contains(child: Node): boolean;
82558255 hasAttributes(): boolean;
82568256 hasChildNodes(): boolean;
8257- insertBefore(newChild: Node , refChild: Node | null): Node ;
8257+ insertBefore<T extends Node> (newChild: T , refChild: Node | null): T ;
82588258 isDefaultNamespace(namespaceURI: string | null): boolean;
82598259 isEqualNode(arg: Node): boolean;
82608260 isSameNode(other: Node): boolean;
82618261 lookupNamespaceURI(prefix: string | null): string | null;
82628262 lookupPrefix(namespaceURI: string | null): string | null;
82638263 normalize(): void;
8264- removeChild(oldChild: Node ): Node ;
8265- replaceChild(newChild: Node, oldChild: Node ): Node ;
8264+ removeChild<T extends Node> (oldChild: T ): T ;
8265+ replaceChild<T extends Node> (newChild: Node, oldChild: T ): T ;
82668266 readonly ATTRIBUTE_NODE: number;
82678267 readonly CDATA_SECTION_NODE: number;
82688268 readonly COMMENT_NODE: number;
0 commit comments