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

x/rimbu/core/main/index.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.13.1/core/main/index.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>