Skip to main content
Module

x/rimbu/mod.ts>Patch.PatchArray

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

Type representing allowed patches for arrays

Type Parameters

T extends readonly unknown[]
P
R
definition: (Patch.Update<T, P, R> | (T extends readonly (infer E)[] ? { [[Patch.MAP]]: PatchHelper<E, T, R>; } : never) | [K in [K2 in keyof T]: K2[keyof T]]?: PatchHelper<T[K], T, R>) & Literal.NoIterable