Skip to main content
closeSync - node__fs.d.ts - Node documentation
function closeSync

Usage in Deno

```typescript import { closeSync } from "node:node__fs.d.ts"; ```
closeSync(fd: number): void
Closes the file descriptor. Returns `undefined`. Calling `fs.closeSync()` on any file descriptor (`fd`) that is currently in use through any other `fs` operation may lead to undefined behavior. See the POSIX [`close(2)`](http://man7.org/linux/man-pages/man2/close.2.html) documentation for more detail.

Parameters

fd: number

Return Type

void