API reference / @evolu/common / Type / TypeErrorWithReason

Interface: TypeErrorWithReason<Name, Reason>

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

Extends

Extended by

Type Parameters

Type ParameterDefault type
Name extends TypeNameTypeName
Reason extends objectobject

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
reasonreadonlyReasonThe detailed reason for the error, represented as a tagged union.-packages/common/src/Type.ts:261
typereadonlyName-TypeError.typepackages/common/src/Type.ts:245
valuereadonlyunknownThe value that was received and caused the error. Provides additional context for debugging and validation feedback.TypeError.valuepackages/common/src/Type.ts:251

Was this page helpful?