diff --git a/types/xmldoc/index.d.ts b/types/xmldoc/index.d.ts index 7d521ac237..a4373606d9 100644 --- a/types/xmldoc/index.d.ts +++ b/types/xmldoc/index.d.ts @@ -1,7 +1,7 @@ -// Type definitions for xmldoc 1.1.0 +// Type definitions for xmldoc 1.1 // Project: https://www.npmjs.com/package/xmldoc // Definitions by: Xavier Stouder , Andrew Sheehan -// Definitions: https://github.com/DefinitelyTyped/ +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped): // TypeScript Version: 2.1 export class XmlDocument { constructor(xmlString: string); diff --git a/types/xmldoc/xmldoc-tests.ts b/types/xmldoc/xmldoc-tests.ts index 17942e2658..5698bac85b 100644 --- a/types/xmldoc/xmldoc-tests.ts +++ b/types/xmldoc/xmldoc-tests.ts @@ -28,12 +28,12 @@ const authorIsProper = bookNode.valueWithPath("author.name@isProper"); // retur // // https://github.com/nfarina/xmldoc#tostringoptions // -document.toString({ compressed: true }) // strips indents and linebreaks -document.toString({ trimmed: true }) // trims long strings for easier debugging -document.toString({ preserveWhitespace: true }) // prevents whitespace being removed from around element values +document.toString({ compressed: true }); // strips indents and linebreaks +document.toString({ trimmed: true }); // trims long strings for easier debugging +document.toString({ preserveWhitespace: true }); // prevents whitespace being removed from around element values const xml = "looooooong value"; -console.log("My document: \n" + new xmldoc.XmlDocument(xml).toString({ trimmed: true })) +console.log("My document: \n" + new xmldoc.XmlDocument(xml).toString({ trimmed: true })); /* Prints: My Document: