1
0
Fork 0
mirror of https://github.com/shimataro/ssh-key-action.git synced 2025-06-19 22:52:10 +10:00
ssh-key-action/node_modules/fast-diff/diff.d.ts
2019-09-18 20:39:54 +09:00

20 lines
404 B
TypeScript

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;