@types/xmldoc
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -9,3 +9,3 @@ // Type definitions for xmldoc 1.1 | ||
export class XmlDocument extends XmlElement { | ||
constructor(xmlString: string); | ||
constructor(xml: string); | ||
@@ -15,11 +15,14 @@ doctype: string; | ||
export type XmlNode = XmlElement | XmlTextNode | XmlCDataNode | XmlCommentNode; | ||
export class XmlElement { | ||
constructor(tag: XmlElement); | ||
constructor(tag: XmlTag); | ||
type: 'element'; | ||
name: string; | ||
attr: XmlAttributes; | ||
val: string; | ||
children: XmlElement[]; | ||
firstChild: XmlElement; | ||
lastChild: XmlElement; | ||
children: XmlNode[]; | ||
firstChild: XmlNode | null; | ||
lastChild: XmlNode | null; | ||
line: number; | ||
@@ -30,8 +33,9 @@ column: number; | ||
eachChild(func: (child: XmlElement, index?: number, array?: XmlElement[]) => void): void; | ||
childNamed(name: string): XmlElement; | ||
eachChild(iterator: (child: XmlElement, index: number, array: XmlNode[]) => void): void; | ||
eachChild<T>(iterator: (this: T, child: XmlElement, index: number, array: XmlNode[]) => void, context: T): void; | ||
childNamed(name: string): XmlElement | undefined; | ||
childrenNamed(name: string): XmlElement[]; | ||
childWithAttribute(name: string, value?: string): XmlElement; | ||
descendantWithPath(path: string): XmlElement; | ||
valueWithPath(path: string): string; | ||
childWithAttribute(name: string, value?: string | null): XmlElement | undefined; | ||
descendantWithPath(path: string): XmlElement | undefined; | ||
valueWithPath(path: string): string | undefined; | ||
toString(opts?: XmlOptions): string; | ||
@@ -44,2 +48,5 @@ toStringWithIndent(indent: string, opts?: XmlOptions): string; | ||
type: 'text'; | ||
text: string; | ||
toString(opts?: XmlOptions): string; | ||
@@ -52,2 +59,5 @@ toStringWithIndent(indent: string, opts?: XmlOptions): string; | ||
type: 'cdata'; | ||
cdata: string; | ||
toString(opts?: XmlOptions): string; | ||
@@ -60,2 +70,5 @@ toStringWithIndent(indent: string, opts?: XmlOptions): string; | ||
type: 'comment'; | ||
comment: string; | ||
toString(opts?: XmlOptions): string; | ||
@@ -62,0 +75,0 @@ toStringWithIndent(indent: string, opts?: XmlOptions): string; |
{ | ||
"name": "@types/xmldoc", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "TypeScript definitions for xmldoc", | ||
@@ -26,8 +26,8 @@ "license": "MIT", | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git.git" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "f572033412c8cb7a19192d5c8a0fd857766d2938ba2217857cf69a94bef59af5", | ||
"typesPublisherContentHash": "fe0db35830702a49ec47c26800acbea4b07f2181804f794d92c59d60d3fd90ba", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xmldoc | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped.git/tree/master/types/xmldoc | ||
Additional Details | ||
* Last updated: Thu, 11 Jan 2018 22:07:40 GMT | ||
* Last updated: Wed, 23 May 2018 23:09:40 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5088
68