From 0da73e1b23dda015292ceebea98b911070373948 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Fri, 6 Jan 2017 20:56:30 +0800 Subject: [PATCH] Improve appendChild --- baselines/dom.generated.d.ts | 2 +- inputfiles/overridingTypes.json | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 6ef03df83..d209e37cc 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -7754,7 +7754,7 @@ interface Node extends EventTarget { readonly parentNode: Node | null; readonly previousSibling: Node | null; textContent: string | null; - appendChild(newChild: Node): Node; + appendChild(newChild: T): T; cloneNode(deep?: boolean): Node; compareDocumentPosition(other: Node): number; contains(child: Node): boolean; diff --git a/inputfiles/overridingTypes.json b/inputfiles/overridingTypes.json index afc098f28..186a3cde4 100644 --- a/inputfiles/overridingTypes.json +++ b/inputfiles/overridingTypes.json @@ -16,6 +16,12 @@ "name": "insertBefore", "signatures": ["insertBefore(newChild: Node, refChild: Node | null): Node"] }, + { + "kind": "method", + "interface": "Node", + "name": "appendChild", + "signatures": ["appendChild(newChild: T): T"] + }, { "kind": "method", "interface": "HTMLCollection",