ConstraintViolationResult TypeAlias
The details of what kind of constraint was violated and caused a ConstraintViolationFailure error to occur
Signature
export type ConstraintViolationResult = {
readonly kind: ConstraintViolationKind.BadRange;
readonly rangeFailure: BadRangeValidationResult;
} | {
readonly kind: ConstraintViolationKind.BadLength;
readonly actual: number;
} | {
readonly kind: ConstraintViolationKind.BadParent;
readonly actual: NodeId;
} | {
readonly kind: ConstraintViolationKind.BadLabel;
readonly actual: TraitLabel;
};