import { type Unwrap, type ComputedTypeError } from "../../common"; import { type Primitive } from "../primitive"; export type OnlyLiteralPrimitiveString = string extends Unwrap ? ComputedTypeError<"Input primitive must be a literal string."> : GenericValue; export type OnlyLiteralPrimitiveNumber = number extends Unwrap ? ComputedTypeError<"Input primitive must be a literal number."> : GenericValue; export type OnlyLiteralPrimitiveBigInt = bigint extends Unwrap ? ComputedTypeError<"Input primitive must be a literal bigint."> : GenericValue; export type OnlyLiteralPrimitiveBoolean = boolean extends Unwrap ? ComputedTypeError<"Input primitive must be a literal boolean."> : GenericValue; export type OnlyLiteral = (OnlyLiteralPrimitiveString & OnlyLiteralPrimitiveNumber & OnlyLiteralPrimitiveBigInt & OnlyLiteralPrimitiveBoolean);