Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/typebox_deno/src/value/value.ts>Value.Patch

JSON Schema Type Builder with Static Type Resolution for TypeScript
Latest
function Value.Patch
import { Value } from "https://deno.land/x/typebox_deno@0.31.22/src/value/value.ts";
const { Patch } = Value;

Returns a new value with edits applied to the given value

Type Parameters

optional
T = any

Parameters

current: unknown
edits: ValueDelta.Edit[]