Merge pull request #3660 from paulsouche/master

[xml2js] missing the Parser constructor on module
This commit is contained in:
Masahiro Wakame
2015-03-12 01:01:41 +09:00
2 changed files with 10 additions and 0 deletions
+2
View File
@@ -15,3 +15,5 @@ var builder = new xml2js.Builder({
var outString = builder.buildObject({
'hello': 'xml2js!'
});
var parser = new xml2js.Parser();
+8
View File
@@ -16,6 +16,14 @@ declare module 'xml2js' {
buildObject(rootObj: any): string;
}
class Parser {
constructor(options?: Options);
processAsync(): any;
assignOrPush(obj: any, key: string, newValue: any): any;
reset(): any;
parseString(str: string , cb?: Function): void;
}
interface RenderOptions {
indent?: string;
newline?: string;