Skip to main content
Module

x/rimbu/mod.ts>Deep.Patch.Entry

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

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.

definition: IsAnyFunc<T> extends true ? T : IsPlainObj<T> extends true ? Patch.WithResult<T, P, R, Patch.Obj<T, C, R>> : Tuple.IsTuple<T> extends true ? Patch.WithResult<T, P, R, T | Patch.Tup<T, C, R>> : IsArray<T> extends true ? Patch.WithResult<T, P, R, T> : Patch.WithResult<T, P, R, T>