mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #18098 from lochbrunner/master
[xmldoc] Make XmlDocument as an extension of XmlElement
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Vendored
+1
-10
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user