Skip to main content
WriteStream.prototype.close - node__fs.d.ts - Node documentation
method WriteStream.prototype.close

Usage in Deno

```typescript import { WriteStream } from "node:node__fs.d.ts"; ```
WriteStream.prototype.close(callback?: (err?: ErrnoException | null) => void): void
Closes `writeStream`. Optionally accepts a callback that will be executed once the `writeStream`is closed.

Parameters

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

Return Type

void