method WriteStream.prototype.onimport { WriteStream } from "https://dotland.deno.dev/std@0.177.0/node/fs.ts"; on(event: "close", listener: () => void): thison(event: "drain", listener: () => void): thison(event: "error", listener: (err: Error) => void): thison(event: "finish", listener: () => void): thison(event: "open", listener: (fd: number) => void): thison(event: "pipe", listener: (src: stream.Readable) => void): thison(event: "ready", listener: () => void): thison(event: "unpipe", listener: (src: stream.Readable) => void): thison(event: string | symbol, listener: (...args: any[]) => void): thisParametersevent: "close"listener: () => voidReturnsthisParametersevent: "drain"listener: () => voidReturnsthisParametersevent: "error"listener: (err: Error) => voidReturnsthisParametersevent: "finish"listener: () => voidReturnsthisParametersevent: "open"listener: (fd: number) => voidReturnsthisParametersevent: "pipe"listener: (src: stream.Readable) => voidReturnsthisParametersevent: "ready"listener: () => voidReturnsthisParametersevent: "unpipe"listener: (src: stream.Readable) => voidReturnsthisParametersevent: string | symbollistener: (...args: any[]) => voidReturnsthis