@@ -3208,7 +3208,7 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven
3208
3208
* Gets or sets the version attribute specified in the declaration of an XML document.
3209
3209
*/
3210
3210
xmlVersion: string | null;
3211
- adoptNode(source: Node ): Node ;
3211
+ adoptNode<T extends Node> (source: T ): T ;
3212
3212
captureEvents(): void;
3213
3213
caretRangeFromPoint(x: number, y: number): Range;
3214
3214
clear(): void;
@@ -3385,7 +3385,7 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven
3385
3385
* Gets a value indicating whether the object currently has focus.
3386
3386
*/
3387
3387
hasFocus(): boolean;
3388
- importNode(importedNode: Node , deep: boolean): Node ;
3388
+ importNode<T extends Node> (importedNode: T , deep: boolean): T ;
3389
3389
msElementsFromPoint(x: number, y: number): NodeListOf<Element>;
3390
3390
msElementsFromRect(left: number, top: number, width: number, height: number): NodeListOf<Element>;
3391
3391
/**
@@ -8259,15 +8259,15 @@ interface Node extends EventTarget {
8259
8259
contains(child: Node): boolean;
8260
8260
hasAttributes(): boolean;
8261
8261
hasChildNodes(): boolean;
8262
- insertBefore(newChild: Node , refChild: Node | null): Node ;
8262
+ insertBefore<T extends Node> (newChild: T , refChild: Node | null): T ;
8263
8263
isDefaultNamespace(namespaceURI: string | null): boolean;
8264
8264
isEqualNode(arg: Node): boolean;
8265
8265
isSameNode(other: Node): boolean;
8266
8266
lookupNamespaceURI(prefix: string | null): string | null;
8267
8267
lookupPrefix(namespaceURI: string | null): string | null;
8268
8268
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 ;
8271
8271
readonly ATTRIBUTE_NODE: number;
8272
8272
readonly CDATA_SECTION_NODE: number;
8273
8273
readonly COMMENT_NODE: number;
0 commit comments