diff --git a/types/diff/diff-tests.ts b/types/diff/diff-tests.ts index 0d49147c33..e787c44f48 100644 --- a/types/diff/diff-tests.ts +++ b/types/diff/diff-tests.ts @@ -7,7 +7,7 @@ let diff = jsdiff.diffChars(one, other); diff.forEach(part => { const mark = part.added ? '+' : part.removed ? '-' : ' '; - console.log(mark + " " + part.value); + console.log(`${mark} ${part.value}`); }); // -------------------------- diff --git a/types/diff/index.d.ts b/types/diff/index.d.ts index 05b02d2bcd..720a8d3270 100644 --- a/types/diff/index.d.ts +++ b/types/diff/index.d.ts @@ -4,18 +4,17 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 - export = JsDiff; export as namespace JsDiff; declare namespace JsDiff { interface ICaseOptions { - ignoreCase: boolean + ignoreCase: boolean; } interface ILinesOptions { - ignoreWhitespace?: boolean, - newlineIsToken?: boolean + ignoreWhitespace?: boolean; + newlineIsToken?: boolean; } interface IDiffResult {