UNPKG

389 BTypeScriptView Raw
1declare module 'fast-diff' {
2 export = diff
3 namespace diff {
4 export const INSERT = 1
5 export const EQUAL = 0
6 export const DELETE = -1
7
8 export type DeleteEdit = [-1, string]
9 export type EqualEdit = [0, string]
10 export type InsertEdit = [1, string]
11 export type Edit = DeleteEdit | EqualEdit | InsertEdit
12 }
13
14 function diff(a: string, b: string): diff.Edit[]
15}
16
\No newline at end of file