method internal.Duplex.prototype.endDuplex.prototype.end(cb?: () => void): thisDeprecatedParametersoptionalcb: () => voidReturn TypethisDuplex.prototype.end(chunk: any,cb?: () => void,): thisDeprecatedParameterschunk: anyoptionalcb: () => voidReturn TypethisDuplex.prototype.end(chunk: any,encoding?: BufferEncoding,cb?: () => void,): thisDeprecatedParameterschunk: anyoptionalencoding: BufferEncodingoptionalcb: () => voidReturn Typethis