/** * Helper type to ensure exactly one property from a set is provided */ export type ExactlyOne = { [P in K]: { [Q in P]: T[P] } & { [Q in Exclude]?: never } }[K]