method WriteStream.prototype.closeWriteStream.prototype.close(callback?: (err?: ErrnoException | null) => void): voidDeprecatedCloses writeStream. Optionally accepts a callback that will be executed once the writeStreamis closed. Parametersoptionalcallback: (err?: ErrnoException | null) => voidReturn Typevoid