MergeAllMaps

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

type alias

type MergeAllMaps<T, U, X = PartialByType<T, Map<unknown, unknown>>, Y = PartialByType<U, Map<unknown, unknown>>, Z = { [K in keyof X & keyof Y]: Map<MapKeyType<X[K]> | MapKeyType<Y[K]>, MapValueType<X[K]> | MapValueType<Y[K]>> }> = Z

Merge all maps types definitions from keys present in both objects

Source