method Writable.prototype.onimport { Writable } from "https://deno.land/std@0.142.0/node/stream.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: "pipe", listener: (src: Readable) => void): thison(event: "unpipe", listener: (src: 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: "pipe"listener: (src: Readable) => voidReturnsthisParametersevent: "unpipe"listener: (src: Readable) => voidReturnsthisParametersevent: string | symbollistener: (...args: any[]) => voidReturnsthis