Type Alias: SequenceValidationResult
ts
type SequenceValidationResult =
| {
isValid: true;
reason: typeof VALID;
}
| {
isValid: false;
reason: | typeof SEQUENCE_NUMBER_BELOW_MINIMUM
| typeof DUPLICATE
| typeof OUT_OF_ORDER;
}
| {
isValid: false;
missingFrom: number;
missingTo: number;
reason: typeof GAP_DETECTED;
};Defined in: vsi/SequenceState.ts:59
Result of validating a single sequence number against the current stream state.
Discriminated on reason — narrow to 'gap_detected' to access missingFrom / missingTo.