method internal.Duplex.prototype.emitDuplex.prototype.emit(event: "close"): booleanDeprecatedParametersevent: "close"Return TypebooleanDuplex.prototype.emit(event: "data",chunk: any,): booleanDeprecatedParametersevent: "data"chunk: anyReturn TypebooleanDuplex.prototype.emit(event: "drain"): booleanDeprecatedParametersevent: "drain"Return TypebooleanDuplex.prototype.emit(event: "end"): booleanDeprecatedParametersevent: "end"Return TypebooleanDuplex.prototype.emit(event: "error",err: Error,): booleanDeprecatedParametersevent: "error"err: ErrorReturn TypebooleanDuplex.prototype.emit(event: "finish"): booleanDeprecatedParametersevent: "finish"Return TypebooleanDuplex.prototype.emit(event: "pause"): booleanDeprecatedParametersevent: "pause"Return TypebooleanDuplex.prototype.emit(event: "pipe",src: Readable,): booleanDeprecatedParametersevent: "pipe"src: ReadableReturn TypebooleanDuplex.prototype.emit(event: "readable"): booleanDeprecatedParametersevent: "readable"Return TypebooleanDuplex.prototype.emit(event: "resume"): booleanDeprecatedParametersevent: "resume"Return TypebooleanDuplex.prototype.emit(event: "unpipe",src: Readable,): booleanDeprecatedParametersevent: "unpipe"src: ReadableReturn TypebooleanDuplex.prototype.emit(event: string | symbol,...args: any[],): booleanDeprecatedParametersevent: string | symbol<span>...args</span>: any[]Return Typeboolean