Merge pull request #18098 from lochbrunner/master

[xmldoc] Make XmlDocument as an extension of XmlElement
This commit is contained in:
Wesley Wigham
2017-07-17 12:45:10 -07:00
committed by GitHub
2 changed files with 1 additions and 14 deletions
-4
View File
@@ -5,10 +5,6 @@
import * as fs from 'fs';
import * as path from 'path';
function repeat(s: string, count: number) {
return Array(count + 1).join(s);
}
const home = path.join(__dirname, '..');
for (const dirName of fs.readdirSync(home)) {
+1 -10
View File
@@ -3,19 +3,10 @@
// Definitions by: Xavier Stouder <https://github.com/Xstoudi>, Andrew Sheehan <https://github.com/ajsheehan>
// 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 {