import { type RemoveDuplicateInUnion, type IsUnion } from "../../../common"; import { type ComplexUnMatchedValue } from "."; export type ComplexUnMatchedUnionObject = (IsUnion> extends false ? never : Extract extends infer InferredPatternValue ? (InferredPatternValue extends object ? ComplexUnMatchedValue extends infer InferredResult ? ComplexUnMatchedValue> : never : never) extends infer InferredResult ? RemoveDuplicateInUnion : never : never);