Skip to main content
Module

x/rimbu/mod.ts>Patch

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
namespace Patch
import { Patch } from "https://deno.land/x/rimbu@0.11.6/mod.ts";

Functions

Returns a function that patches a given value with the given patchItems.

Type Aliases

The entry type for a (nested) patch. Can be either a patch object or a function accepting the nested patch function and returning a patch object.

The function type to create a nested Patch object.

The object patch type, allows the user to specify keys in T that should be patched, and each given key contains either a new value or a nested patch, or a function receiving the current value, the parent object, and the root object, and returning a new value or a nested patch.

A patch object can have as update either a new value or a nested patch object

type alias Patch
import { type Patch } from "https://deno.land/x/rimbu@0.11.6/mod.ts";

A type to determine the allowed input type for the patch function.