MergeAllSets

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

type alias

type MergeAllSets<T, U, X = PartialByType<T, Set<unknown>>, Y = PartialByType<U, Set<unknown>>, Z = { [K in keyof X & keyof Y]: Set<SetValueType<X[K]> | SetValueType<Y[K]>> }> = Z

Merge all sets types definitions from keys present in both objects

Source