This release is 1 version behind 0.3.3 — the latest version of @coven/compare. Jump to latest
Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
⚖️ Minimalist diffing.
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
JSR Score
100%
Published
2 months ago (0.3.2)
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;