WriteStream.prototype.close - Node documentation
method WriteStream.prototype.close

Usage in Deno

import { WriteStream } from "node:fs";
WriteStream.prototype.close(callback?: (err?: ErrnoException | null) => void): void

Closes writeStream. Optionally accepts a callback that will be executed once the writeStreamis closed.

Parameters

optional
callback: (err?: ErrnoException | null) => void

Return Type

void