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.
interface WritableOptions
implements StreamOptions<Writable>
import { type WritableOptions } from "https://deno.land/std@0.161.0/node/_stream.d.ts";

Properties

optional
decodeStrings: boolean | undefined
optional
defaultEncoding: BufferEncoding | undefined

Methods

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