Files
crawler/node_modules/streamx/lib/errors.d.ts
T
2026-06-26 14:30:45 +02:00

14 lines
361 B
TypeScript

declare class StreamError extends Error {
readonly code: string
static isStreamDestroyed(err: Error | null): boolean
static isPrematureClose(err: Error | null): boolean
static isAborted(err: Error | null): boolean
static STREAM_DESTROYED(): StreamError
static PREMATURE_CLOSE(): StreamError
static ABORTED(): StreamError
}
export = StreamError