Skip to main content
This release was yanked — the latest version of @coven/compare is 0.3.3. Jump to latest

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
3 months ago (0.1.0)
type alias CreateDifference

Object that represents a creation difference (a new value or property).

Examples

Example 1

const createDifference = {
	kind: "CREATE",
	path: ["property", "path"],
	right: "new value",
} as const satisfies CreateDifference<string>;

Type Parameters

Right = unknown

Type of the new value.

Definition

{ readonly kind: CREATE; readonly right: Right; } & DifferencePath

Add Package

deno add jsr:@coven/compare

Import symbol

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

---- OR ----

Import directly with a jsr specifier

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

Add Package

npx jsr add @coven/compare

Import symbol

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

Add Package

yarn dlx jsr add @coven/compare

Import symbol

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

Add Package

pnpm dlx jsr add @coven/compare

Import symbol

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

Add Package

bunx jsr add @coven/compare

Import symbol

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