Skip to main content

Built and signed on GitHub Actions

⚖️ Minimalist diffing.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
2 weeks ago (0.3.2)
type alias DeleteDifference

Deletion difference (property or value removed).

Examples

Object that satisfies a deletion difference

const deleteDifference = {
	kind: "DELETE",
	left: "removed value",
	path: ["property", "path"].values(),
} as const satisfies DeleteDifference<string>;

Type Parameters

Left = unknown

Type of the removed/original value.

Definition

{ readonly kind: DELETE_KIND; readonly left: Left; } & WithPropertyPath

Add Package

deno add jsr:@coven/compare

Import symbol

import { type DeleteDifference } from "@coven/compare";

---- OR ----

Import directly with a jsr specifier

import { type DeleteDifference } from "jsr:@coven/compare";

Add Package

npx jsr add @coven/compare

Import symbol

import { type DeleteDifference } from "@coven/compare";

Add Package

yarn dlx jsr add @coven/compare

Import symbol

import { type DeleteDifference } from "@coven/compare";

Add Package

pnpm dlx jsr add @coven/compare

Import symbol

import { type DeleteDifference } from "@coven/compare";

Add Package

bunx jsr add @coven/compare

Import symbol

import { type DeleteDifference } from "@coven/compare";