MergeAllRecords

import { MergeAllRecords } from "jsr:@ende/collections";

type alias

type MergeAllRecords<T, U, Options, X = PartialByType<T, Record<PropertyKey, unknown>>, Y = PartialByType<U, Record<PropertyKey, unknown>>, Z = { [K in keyof X & keyof Y]: DeepMerge<X[K], Y[K], Options> }> = Z

Merge all records types definitions from keys present in both objects

Source