mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
17 lines
454 B
TypeScript
17 lines
454 B
TypeScript
// Type definitions for fast-diff 1.1
|
|
// Project: https://github.com/jhchen/fast-diff#readme
|
|
// Definitions by: John Renner <https://github.com/djrenren>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare function diff(text1: string, text2: string, cursorPos?: number): diff.Diff[];
|
|
|
|
declare namespace diff {
|
|
type Diff = [-1 | 0 | 1, string];
|
|
|
|
const DELETE: -1;
|
|
const INSERT: 1;
|
|
const EQUAL: 0;
|
|
}
|
|
|
|
export = diff;
|