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

x/rimbu/core/mod.ts>Deep.Patch.Func

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

A function patch type that is a function taking the current value, the parent and root values, and returns a return value.

definition: (
current: Protected<T>,
parent: Protected<P>,
root: Protected<R>,
) => Protected<S>