method WriteStream.prototype.onWriteStream.prototype.on(event: "close",listener: () => void,): thisDeprecatedParametersevent: "close"listener: () => voidReturn TypethisWriteStream.prototype.on(event: "drain",listener: () => void,): thisDeprecatedParametersevent: "drain"listener: () => voidReturn TypethisWriteStream.prototype.on(event: "error",listener: (err: Error) => void,): thisDeprecatedParametersevent: "error"listener: (err: Error) => voidReturn TypethisWriteStream.prototype.on(event: "finish",listener: () => void,): thisDeprecatedParametersevent: "finish"listener: () => voidReturn TypethisWriteStream.prototype.on(event: "open",listener: (fd: number) => void,): thisDeprecatedParametersevent: "open"listener: (fd: number) => voidReturn TypethisWriteStream.prototype.on(event: "pipe",listener: (src: stream.Readable) => void,): thisDeprecatedParametersevent: "pipe"listener: (src: stream.Readable) => voidReturn TypethisWriteStream.prototype.on(event: "ready",listener: () => void,): thisDeprecatedParametersevent: "ready"listener: () => voidReturn TypethisWriteStream.prototype.on(event: "unpipe",listener: (src: stream.Readable) => void,): thisDeprecatedParametersevent: "unpipe"listener: (src: stream.Readable) => voidReturn TypethisWriteStream.prototype.on(event: string | symbol,listener: (...args: any[]) => void,): thisDeprecatedParametersevent: string | symbollistener: (...args: any[]) => voidReturn Typethis