Skip to content

Commit

Permalink
Making XmlDocument as an extension of XmlElement
Browse files Browse the repository at this point in the history
  • Loading branch information
lochbrunner committed Jul 15, 2017
1 parent 5752217 commit 3664cc3
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions types/xmldoc/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3664cc3

Please sign in to comment.