@types/json-patch-gen
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/json-patch-gen

Weekly Downloads

418

Version

1.0.3

License

MIT

Unpacked Size

3.21 kB

Total Files

5

Last publish

Collaborators

  • types