# @types/json-merge-patch

> TypeScript definitions for json-merge-patch

Latest version **1.0.0** (published 2024-09-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/json-merge-patch
pnpm add @types/json-merge-patch
yarn add @types/json-merge-patch
bun add @types/json-merge-patch
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2024-09-17 |
| First published | 2016-08-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/json-merge-patch
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-merge-patch
- npm.io page: https://npm.io/package/@types/json-merge-patch

## Recent versions

- 1.0.0 (latest) — 2024-09-17
- 0.0.10 (ts4.5) — 2023-11-07
- 0.0.8 (ts4.2) — 2022-01-08
- 0.0.5 (ts3.7) — 2020-05-15
- 0.0.4 (ts2.4) — 2016-10-05
- 0.0.9 — 2023-10-18
- 0.0.7 — 2021-12-24
- 0.0.6 — 2021-12-16
- 0.0.3 — 2016-09-19
- 0.0.2 — 2016-08-31
- 0.0.1 — 2016-08-08

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-merge-patch/index.d.ts)
````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, 17 Sep 2024 18:09:19 GMT
 * Dependencies: none

# Credits
These definitions were written by [Jimmy Leung](https://github.com/jimmy-leung-coherent).

---
_Source: https://npm.io/package/@types/json-merge-patch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
