@@ -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 /**
@@ -8259,15 +8259,15 @@ interface Node extends EventTarget {
82598259 contains(child: Node): boolean;
82608260 hasAttributes(): boolean;
82618261 hasChildNodes(): boolean;
8262- insertBefore(newChild: Node , refChild: Node | null): Node ;
8262+ insertBefore<T extends Node> (newChild: T , refChild: Node | null): T ;
82638263 isDefaultNamespace(namespaceURI: string | null): boolean;
82648264 isEqualNode(arg: Node): boolean;
82658265 isSameNode(other: Node): boolean;
82668266 lookupNamespaceURI(prefix: string | null): string | null;
82678267 lookupPrefix(namespaceURI: string | null): string | null;
82688268 normalize(): void;
8269- removeChild(oldChild: Node ): Node ;
8270- replaceChild(newChild: Node, oldChild: Node ): Node ;
8269+ removeChild<T extends Node> (oldChild: T ): T ;
8270+ replaceChild<T extends Node> (newChild: Node, oldChild: T ): T ;
82718271 readonly ATTRIBUTE_NODE: number;
82728272 readonly CDATA_SECTION_NODE: number;
82738273 readonly COMMENT_NODE: number;
0 commit comments