PHP 8.2.30
Preview: index.d.ts Size: 668 B
/opt/alt/alt-nodejs16/root/lib/node_modules/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: 7

Name Size Perms Modified Actions
668 B lrw-r--r-- 2026-03-09 06:51:27
Edit Download
3.85 KB lrw-r--r-- 2026-03-09 06:51:27
Edit Download
3.81 KB lrw-r--r-- 2026-03-09 06:51:27
Edit Download
1.26 KB lrw-r--r-- 2026-03-09 06:51:27
Edit Download
1.05 KB lrw-r--r-- 2026-03-09 06:51:27
Edit Download
767 B lrw-r--r-- 2026-03-09 06:51:27
Edit Download
120 B lrw-r--r-- 2026-03-09 06:51:27
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).