API Reference / @evolu/common / Type / TypeErrors

Type Alias: TypeErrors<ExtraErrors>

type TypeErrors<ExtraErrors> = 
  | StringError
  | NumberError
  | BigIntError
  | BooleanError
  | UndefinedError
  | NullError
  | FunctionError
  | Uint8ArrayError
  | InstanceOfError
  | EvoluTypeError
  | CurrencyCodeError
  | DateIsoStringError
  | TrimmedError
  | MinLengthError
  | MaxLengthError
  | LengthError
  | MnemonicError
  | RegexError
  | NanoIdError
  | SimplePasswordError
  | IdError
  | PositiveError
  | NegativeError
  | NonPositiveError
  | NonNegativeError
  | IntError
  | GreaterThanError
  | LessThanError
  | GreaterThanOrEqualToError
  | LessThanOrEqualToError
  | NonNaNError
  | FiniteError
  | MultipleOfError
  | BetweenError
  | LiteralError
  | Int64Error
  | BigIntFromStringError
  | Int64StringError
  | JsonValueFromStringError
  | JsonError
  | ExtraErrors
  | ArrayError<TypeErrors<ExtraErrors>>
  | RecordError<TypeErrors<ExtraErrors>, TypeErrors<ExtraErrors>>
  | ObjectError<Record<string, TypeErrors<ExtraErrors>>>
  | ObjectWithRecordError<Record<string, TypeErrors<ExtraErrors>>, TypeErrors<ExtraErrors>, TypeErrors<ExtraErrors>>
  | UnionError<TypeErrors<ExtraErrors>>
| TupleError<TypeErrors<ExtraErrors>>;

Defined in: packages/common/src/Type.ts:3745

Union of all TypeErrors defined in the Type.ts file, including base type errors (e.g., StringError, NumberError), composite type errors (ArrayError, ObjectError), and optionally, user-defined extra errors.

This type is recursive, meaning errors can be nested within composite structures like arrays, objects, records, unions, and tuples.

Used by createFormatTypeError to generate human-readable error messages.

Type Parameters

Type ParameterDefault type
ExtraErrors extends TypeErrornever

Was this page helpful?