Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
type alias DeepMerge
import { type DeepMerge } from "https://deno.land/std@0.217.0/collections/deep_merge.ts";

Merge deeply two objects

Type Parameters

T
U
optional
Options = Record<string, MergingStrategy>
definition: [T, U] extends [Record<PropertyKey, unknown>, Record<PropertyKey, unknown>] ? Merge<T, U, Options> : T | U