From 9466d1bd2491c513395fadc7ca9dc9c42279cd94 Mon Sep 17 00:00:00 2001 From: "E.G. Hornbostel" Date: Tue, 22 Aug 2017 14:27:05 -0700 Subject: [PATCH] Fixed tslint errors. --- types/diff/diff-tests.ts | 2 +- types/diff/index.d.ts | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) 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 {