ObjectXorKeys

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

type alias

type ObjectXorKeys<T, U, X = Omit<T, keyof U> & Omit<U, keyof T>, Y = { [K in keyof X]: X[K] }> = Y

Object with keys in either T or U but not in both

Source