mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
Fixed tslint errors.
This commit is contained in:
@@ -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}`);
|
||||
});
|
||||
|
||||
// --------------------------
|
||||
|
||||
7
types/diff/index.d.ts
vendored
7
types/diff/index.d.ts
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user