Skip to content

StreamValidationOptions

Defined in: streaming.ts:559

Create a validating stream wrapper.

Validates chunk sequences and throws errors on invalid streams.

Original stream

Validation options

optional maxGap: number

Defined in: streaming.ts:576

Maximum allowed gap before error.

0

optional onWarning: (message) => void

Defined in: streaming.ts:581

Callback for validation warnings.

string

void


optional rejectDuplicates: boolean

Defined in: streaming.ts:570

Throw error on duplicate sequences.

true

optional strictSequence: boolean

Defined in: streaming.ts:564

Throw error on sequence gaps.

true