npm.io
1.0.3 • Published 2 years ago

@types/json-patch-gen

Licence
MIT
Version
1.0.3
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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 0337 GMT
  • Dependencies: none

Credits

These definitions were written by Konstantin Rohde.