import {expectType} from 'tsd'; import type {ConditionalExcept, Primitive} from '../index'; class Awesome { name!: string; successes!: number; failures!: bigint; run(): void { // Empty } } type Example = { a: string; b?: string | number; c?: string; d: Record; }; declare const exampleConditionalExcept: ConditionalExcept; expectType<{b?: string | number; c?: string; d: Record}>(exampleConditionalExcept); declare const awesomeConditionalExcept: ConditionalExcept; expectType<{run: () => void}>(awesomeConditionalExcept); declare const exampleConditionalExceptWithUndefined: ConditionalExcept; expectType<{b?: string | number; d: Record}>(exampleConditionalExceptWithUndefined);