Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class WritableState
import { WritableState } from "https://deno.land/std@0.110.0/node/_stream/writable.ts";

Constructors

new
WritableState(options: WritableOptions | undefined, stream: Writable)

Properties

afterWriteTickInfo: null | AfterWriteTick
allBuffers: boolean
allNoop: boolean
autoDestroy: boolean
buffered: Array<{ allBuffers?: boolean; chunk: any; encoding: string; callback: (error: Error) => void; }>
bufferedIndex: number
readonly
bufferedRequestCount
bufferProcessing: boolean
closed: boolean
closeEmitted: boolean
constructed: boolean
corked: number
decodeStrings: boolean
defaultEncoding: WritableEncodings
destroyed: boolean
emitClose: boolean
ended: boolean
ending: boolean
errored: Error | null
errorEmitted: boolean
finalCalled: boolean
finished: boolean
highWaterMark: number
length: number
needDrain: boolean
objectMode: boolean
onwrite: (error?: Error | null) => void
pendingcb: number
prefinished: boolean
sync: boolean
writable: boolean
writecb: null | ((error: Error) => void)
writelen: number
writing: boolean
[kOnFinished]: Array<(error?: Error) => void>