StreamValidationOptions
Defined in: streaming.ts:559
Create a validating stream wrapper.
Validates chunk sequences and throws errors on invalid streams.
Original stream
Validation options
Properties
Section titled “Properties”maxGap?
Section titled “maxGap?”
optionalmaxGap:number
Defined in: streaming.ts:576
Maximum allowed gap before error.
Default
Section titled “Default”0onWarning()?
Section titled “onWarning()?”
optionalonWarning: (message) =>void
Defined in: streaming.ts:581
Callback for validation warnings.
Parameters
Section titled “Parameters”message
Section titled “message”string
Returns
Section titled “Returns”void
rejectDuplicates?
Section titled “rejectDuplicates?”
optionalrejectDuplicates:boolean
Defined in: streaming.ts:570
Throw error on duplicate sequences.
Default
Section titled “Default”truestrictSequence?
Section titled “strictSequence?”
optionalstrictSequence:boolean
Defined in: streaming.ts:564
Throw error on sequence gaps.
Default
Section titled “Default”true