mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-08-25 08:08:00 +00:00
1ada95e04a
- Convert project to Javascript/Typescript - Allow custom headers to be passed in (optional) - Allow body to be optional
21 lines
404 B
TypeScript
21 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;
|