bany 0645acf21a
upgrade: docker-compose to v2 (#30)
* upgrade: docker-compose
- user docker compose instead

* remove: yarn and clean format js file
2023-07-23 12:05:52 +09:00

22 lines
399 B
TypeScript

declare function diff(
text1: string,
text2: string,
cursorPos?: number | diff.CursorInfo,
cleanup?: boolean
): 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;