From 3664cc36abf268be686266b0bd59c6b8b5e3a29a Mon Sep 17 00:00:00 2001 From: lochbrunner Date: Sat, 15 Jul 2017 13:25:01 +0200 Subject: [PATCH] Making XmlDocument as an extension of XmlElement --- types/xmldoc/index.d.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/types/xmldoc/index.d.ts b/types/xmldoc/index.d.ts index a4373606d9287b..040653d61fef74 100644 --- a/types/xmldoc/index.d.ts +++ b/types/xmldoc/index.d.ts @@ -3,19 +3,10 @@ // Definitions by: Xavier Stouder , Andrew Sheehan // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped): // TypeScript Version: 2.1 -export class XmlDocument { +export class XmlDocument extends XmlElement{ constructor(xmlString: string); doctype: string; - - eachChild(func: (child: XmlElement, index?: number, array?: XmlElement[]) => void): void; - childNamed(name: string): XmlElement; - childrenNamed(name: string): XmlElement[]; - childWithAttribute(name: string, value?: string): XmlElement; - descendantWithPath(path: string): XmlElement; - valueWithPath(path: string): string; - toString(opts?: XmlOptions): string; - toStringWithIndent(indent: string, opts?: XmlOptions): string; } export class XmlElement {