Skip to main content
This release is 1 version behind 0.3.3 — the latest version of @coven/compare. 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
2 months ago (0.3.2)
Package root>CreateDifference.ts
import type { CREATE_KIND } from "./CREATE_KIND.ts"; import type { WithPropertyPath } from "./WithPropertyPath.ts"; /** * Creation difference (property or value added). * * @example Object that satisfies a creation difference * ```typescript * ({ * kind: "CREATE", * right: "created value", * path: ["property", "path"].values() * }) as const satisfies CreateDifference<string>; * ``` * @template Right Type of the new value. */ export type CreateDifference<Right = unknown> = { /** * Creation kind. */ readonly kind: typeof CREATE_KIND; /** * New value. */ readonly right: Right; } & WithPropertyPath;