Files
codeql-action/node_modules/fast-diff/diff.d.ts
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
404 B
TypeScript
Raw Normal View History

2020-05-04 18:50:13 +01:00
declare function diff(
text1: string,
text2: string,
cursorPos?: number | diff.CursorInfo
): diff.Diff[];
declare namespace diff {
type Diff = [-1 | 0 | 1, string];
const DELETE: -1;
const INSERT: 1;
const EQUAL: 0;
interface CursorInfo {
oldRange: { index: number; length: number };
newRange: { index: number; length: number };
}
}
export = diff;