API reference › @evolu/common › Type › TypeError
Defined in: packages/common/src/Type.ts:1004
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
ByteLengthErrorByteSizeLiteralErrorByteLengthFromStringErrorLeancasedErrorPercentageLiteralErrorDurationLiteralErrorTypeValueErrorTransformOutputErrorNeverErrorTypeOfErrorBooleanFromStringErrorObjectTagErrorValidDateErrorLiteralErrorUnionErrorValueTemplateLiteralErrorDateIsoErrorPlainDateIsoErrorDateIsoFromDateErrorDateIsoFromRfc3339ErrorInt64ErrorUInt64ErrorIdentifierErrorCapitalizedErrorUncapitalizedErrorUppercasedErrorLowercasedErrorTrimmedErrorWellFormedErrorNormalizedErrorStartsWithErrorEndsWithErrorIncludesErrorExcludesErrorMinLengthErrorMaxLengthErrorMaxUtf8ByteLengthErrorLengthErrorRegexErrorBase64UrlErrorBase64ErrorHexErrorHexColorErrorNameErrorEmailErrorHostnameErrorIpv4AddressErrorIpv6AddressErrorIpv6AddressFromStringErrorIpAddressErrorIpAddressFromStringErrorPhoneNumberE164ErrorIbanErrorIsbnErrorSimplePasswordErrorMnemonicErrorRedactedErrorTableIdErrorIdErrorUuidErrorUuidVersionErrorUlidErrorInt64StringErrorNonNegativeErrorPositiveErrorNonPositiveErrorNegativeErrorNonNaNErrorFiniteErrorIntErrorIntFromStringErrorFiniteNumberFromStringErrorGreaterThanErrorGreaterThanOrEqualToErrorLessThanErrorLessThanOrEqualToErrorDecimalStringErrorNonNegativeDecimalStringErrorPositiveDecimalStringErrorNonPositiveDecimalStringErrorNegativeDecimalStringErrorMultipleOfErrorBetweenErrorGreaterThanBigIntErrorGreaterThanOrEqualToBigIntErrorLessThanBigIntErrorLessThanOrEqualToBigIntErrorBetweenBigIntErrorArrayNotArrayErrorArrayItemsErrorValueNonEmptyArrayErrorUniqueErrorSetNotSetErrorSetItemsErrorValueMapNotMapErrorMapEntriesErrorValueMinSizeErrorMaxSizeErrorTupleNotArrayErrorTupleInvalidLengthErrorTupleItemsErrorValueRecordNotRecordErrorRecordNotPlainRecordErrorRecordEntriesErrorValueMinEntriesErrorMaxEntriesErrorObjectErrorObjectMissingPropertyErrorObjectPropertyAccessErrorObjectNotObjectErrorObjectUnexpectedPrototypeErrorObjectExcessPropertyErrorObjectPropertiesErrorStrictObjectFromUnknownErrorObjectKeysErrorDiscriminatedUnionObjectErrorDiscriminatedUnionPropertyAccessErrorDiscriminatedUnionDiscriminatorErrorDataErrorJsonValueErrorJsonErrorAppNameErrorValidDbChangeValuesErrorTimestampBytesErrorOpfsNameErrorSqliteVfsPathError
Properties
type
readonly type: Name;
Defined in: packages/common/src/Type.ts:1005