Installation
npm install --save @types/json-patch-gen
Summary
This package contains type definitions for json-patch-gen (https://github.com/gregsexton/json-patch-gen).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-patch-gen.
index.d.ts
declare function diff(obj1: object | null, obj2: object | null): diff.JsonPatch[];
declare namespace diff {
type PatchOperation = "replace" | "add" | "remove";
interface JsonPatch {
op: PatchOperation;
path: string;
value: any;
}
}
export = diff;
export as namespace diff;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by Konstantin Rohde.