Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface WritableOptions
import { type WritableOptions } from "https://deno.land/std@0.115.1/node/_stream/writable.ts";

Properties

optional
autoDestroy: boolean
optional
decodeStrings: boolean
optional
defaultEncoding: WritableEncodings
optional
emitClose: boolean
optional
highWaterMark: number
optional
objectMode: boolean

Methods

optional
destroy(
this: Writable,
error: Error | null,
callback: (error: Error | null) => void,
): void
optional
final(this: Writable, callback: (error?: Error | null) => void): void
optional
write(
this: Writable,
chunk: any,
callback: (error?: Error | null) => void,
): void
optional
writev(
this: Writable,
chunks: Array<{ chunk: any; encoding: string; }>,
callback: (error?: Error | null) => void,
): void