Nfstat
Bun

namespace

fs.fstat

function fstat(
fd: number,
callback: (err: null | ErrnoException, stats: Stats) => void
): void;

Invokes the callback with the fs.Stats for the file descriptor.

See the POSIX fstat(2) documentation for more detail.

function fstat(
fd: number,
options: undefined | StatOptions & { bigint: false },
callback: (err: null | ErrnoException, stats: Stats) => void
): void;

Invokes the callback with the fs.Stats for the file descriptor.

See the POSIX fstat(2) documentation for more detail.

function fstat(
fd: number,
options: StatOptions & { bigint: true },
callback: (err: null | ErrnoException, stats: BigIntStats) => void
): void;

Invokes the callback with the fs.Stats for the file descriptor.

See the POSIX fstat(2) documentation for more detail.

function fstat(
fd: number,
options: undefined | StatOptions,
callback: (err: null | ErrnoException, stats: Stats | BigIntStats) => void
): void;

Invokes the callback with the fs.Stats for the file descriptor.

See the POSIX fstat(2) documentation for more detail.

namespace fstat