import { type Deep } from "https://deno.land/x/rimbu@0.13.2/mod.ts";
const { WithType } = Deep;
Typed and curried Deep API, used in situations where the target type is known but the value will be applied later.
Methods
patchAtWith<P extends Path.Set<T>, TT = T>(path: P, patchItem: Patch<Path.Result<T, P>, Path.Result<TT, P>>): (source: T) => T
Returns a function that patches a given value
with the given patchItems
at the given path
.
matchAtWith<P extends Path.Get<T>>(path: P, matcher: Match<Path.Result<T, P>>): (source: T) => boolean
Returns a function that matches a given value
with the given matcher
at the given string path
.