Installation
npm install --save @types/textdiff-patch
Summary
This package contains type definitions for textdiff-patch (https://github.com/icflorescu/textdiff-patch#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/textdiff-patch.
index.d.ts
declare namespace TextDiffPatch {
type Change = [1, string] | [0, number] | [-1, number];
}
declare function TextDiffPatch(v1: string, patch: TextDiffPatch.Change[]): string;
export = TextDiffPatch;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Joe Barnett.