Skip to main content
Go to Latest
interface WritableStream
implements EventEmitter
import { type WritableStream } from "https://deno.land/std@0.139.0/node/_global.d.ts";

Properties

writable: boolean

Methods

write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean
write(
str: string,
encoding?: BufferEncoding,
cb?: (err?: Error | null) => void,
): boolean
end(cb?: () => void): void
end(data: string | Uint8Array, cb?: () => void): void
end(
str: string,
encoding?: BufferEncoding,
cb?: () => void,
): void