import { type ComputedTypeError } from "./computedTypeError"; export type OnlyLiteralString = string extends GenericValue ? ComputedTypeError<"Input must be a literal string."> : GenericValue; export type OnlyLiteralNumber = number extends GenericValue ? ComputedTypeError<"Input must be a literal number."> : GenericValue; export type OnlyLiteralSymbol = symbol extends GenericValue ? ComputedTypeError<"Input must be a literal symbol."> : GenericValue; export type OnlyLiteralBigInt = bigint extends GenericValue ? ComputedTypeError<"Input must be a literal bigint."> : GenericValue; export type OnlyLiteralBoolean = boolean extends GenericValue ? ComputedTypeError<"Input must be a literal boolean."> : GenericValue; export type OnlyLiteral = (OnlyLiteralString & OnlyLiteralNumber & OnlyLiteralSymbol & OnlyLiteralBigInt & OnlyLiteralBoolean);