effect-io-ai

Package: effect
Module: Schema

Schema.toDifferJsonPatch

Derives a JSON Patch differ from a codec. Serializes values to JSON (via toCodecJson), computes RFC 6902 JSON Patch operations between old and new values, and can apply patches back to the typed value.

Signature

declare const toDifferJsonPatch: <T>(schema: ConstraintCodec<T, unknown>) => Differ<T, JsonPatch.JsonPatch>

Source

Since v4.0.0