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

x/fathym_common/src/src.deps.ts>Merge

The Fathym Reference Architecture provides the common foundation for applications built in Typescript.
Go to Latest
type alias Merge
import { type Merge } from "https://deno.land/x/fathym_common@v0.0.142/src/src.deps.ts";

Merge two objects

Type Parameters

T
U
Options
optional
X =
& (Options extends { sets: "replace"; } ? PartialByType<U, Set<unknown>> : MergeAllSets<T, U>)
& (Options extends { arrays: "replace"; } ? PartialByType<U, Array<unknown>> : MergeAllArrays<T, U>)
& (Options extends { maps: "replace"; } ? PartialByType<U, Map<unknown, unknown>> : MergeAllMaps<T, U>)
definition: ExpandRecursively<X>