PHP 7.4.33
Preview: index.d.ts Size: 668 B
//usr/share/npm/node_modules/just-diff/index.d.ts
// Definitions by: Cameron Hunter <https://github.com/cameronhunter> 
// Modified by: Angus Croll <https://github.com/angus-c>
type Operation = "add" | "replace" | "remove";

type JSONPatchPathConverter<OUTPUT> = (
  arrayPath: Array<string | number>
) => OUTPUT;

export function diff(
  a: object | Array<any>,
  b: object | Array<any>,
): Array<{ op: Operation; path: Array<string | number>; value: any }>;

export function diff<PATH>(
  a: object | Array<any>,
  b: object | Array<any>,
  jsonPatchPathConverter: JSONPatchPathConverter<PATH>
): Array<{ op: Operation; path: PATH; value: any }>;

export const jsonPatchPathConverter: JSONPatchPathConverter<string>;

Directory Contents

Dirs: 0 × Files: 5
Name Size Perms Modified Actions
668 B lrw-r--r-- 2022-02-18 05:14:06
Edit Download
3.82 KB lrw-r--r-- 2022-02-18 05:14:06
Edit Download
3.75 KB lrw-r--r-- 2022-02-18 05:14:06
Edit Download
1.26 KB lrw-r--r-- 2022-02-18 05:14:06
Edit Download
697 B lrw-r--r-- 2022-02-18 05:14:06
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).