API reference › @evolu/common › Type › TypeError
Defined in: packages/common/src/Type.ts:869
A plain structured error produced by a Type operation.
It is a domain value discriminated by type, not an instance of JavaScript's
global TypeError.
Each distinct error meaning and shape should use a unique type. Reuse a tag
only when it intentionally represents the same error contract. Accidental
reuse prevents reliable discriminated-union narrowing.
Extended by
TypeValueErrorTransformOutputErrorNeverErrorTypeOfErrorObjectTagErrorLiteralErrorTemplateLiteralErrorDateIsoErrorDateIsoFromDateErrorInt64ErrorUInt64ErrorCapitalizedErrorTrimmedErrorMinLengthErrorMaxLengthErrorLengthErrorRegexErrorBase64UrlErrorNameErrorMnemonicErrorIdErrorTableIdErrorInt64StringErrorNonNegativeErrorPositiveErrorNonPositiveErrorNegativeErrorNonNaNErrorFiniteErrorIntErrorGreaterThanErrorGreaterThanOrEqualToErrorLessThanErrorLessThanOrEqualToErrorDecimalStringErrorNonNegativeDecimalStringErrorPositiveDecimalStringErrorNonPositiveDecimalStringErrorNegativeDecimalStringErrorMultipleOfErrorBetweenErrorArrayNotArrayErrorSetNotSetErrorMapNotMapErrorTupleNotArrayErrorTupleInvalidLengthErrorRecordNotRecordErrorRecordNotPlainRecordErrorObjectMissingPropertyErrorObjectPropertyAccessErrorObjectNotObjectErrorObjectUnexpectedPrototypeErrorObjectExcessPropertyErrorObjectErrorObjectPropertiesErrorDiscriminatedUnionObjectErrorDiscriminatedUnionPropertyAccessErrorDiscriminatedUnionDiscriminatorErrorDataErrorJsonValueErrorJsonErrorAppNameErrorValidDbChangeValuesError
Properties
type
readonly type: Name;
Defined in: packages/common/src/Type.ts:870