Skip to main content
Module

x/modify_via_query/mod.ts>Modifiable

Natural and type-safe query to mutate a copy of data without changing the original source
Latest
type alias Modifiable
import { type Modifiable } from "https://deno.land/x/modify_via_query@1.0.7/mod.ts";

Type Parameters

Target
Parent
definition: [Key in keyof Target]-?: Target[Key] extends Function ? Target[Key] : (Target[Key] extends Array<infer E> ? (Array<Modifiable<E, Parent>> & Command<Target[Key], Parent>) : "true" extends IsNillableObject<Target[Key]> ? { $default: (value: NonNullable<Target[Key]>) => Modifiable<NonNullable<Target[Key]>, Parent>; } & Command<Target[Key], Parent> : Target[Key] extends { } ? (Modifiable<Target[Key], Parent>) : NonNullable<Target[Key]> & Command<Target[Key], Parent>) & Command<Target, Parent>