Fixed tslint errors.

This commit is contained in:
E.G. Hornbostel
2017-08-22 14:27:05 -07:00
parent b3814c37f6
commit 9466d1bd24
2 changed files with 4 additions and 5 deletions

View File

@@ -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}`);
});
// --------------------------

View File

@@ -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 {