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

0.0.10 • Public • Published

Installation

npm install --save @types/json-merge-patch

Summary

This package contains type definitions for json-merge-patch (https://github.com/pierreinglebert/json-merge-patch).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-merge-patch.

index.d.ts

declare module "json-merge-patch" {
    function apply(target: any, patch: null): null;
    function apply<U>(target: any, patch: U): U;
    function apply<T>(target: T, patch: T): T;

    function generate(before: any, after: null): null;
    function generate<U>(before: any, after: U): U | undefined;
    function generate<T>(before: T, after: T): T | undefined;

    function merge(patch1: any, patch2: null): null;
    function merge<T>(patch1: T, patch2: T): T;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Jimmy Leung.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/json-merge-patch

      Weekly Downloads

      8,952

      Version

      0.0.10

      License

      MIT

      Unpacked Size

      3.58 kB

      Total Files

      5

      Last publish

      Collaborators

      • types