Skip to main content
StatSyncFn - node__fs.d.ts - Node documentation
interface StatSyncFn
extends Function

Usage in Deno

```typescript import { type StatSyncFn } from "node:node__fs.d.ts"; ```

Call Signatures

(
path: PathLike,
options?: undefined,
): Stats
(
path: PathLike,
options?: StatSyncOptions & { bigint?: false | undefined; throwIfNoEntry: false; },
): Stats | undefined
(
path: PathLike,
options: StatSyncOptions & { bigint: true; throwIfNoEntry: false; },
): BigIntStats | undefined
(
path: PathLike,
options?: StatSyncOptions & { bigint?: false | undefined; },
): Stats
(
path: PathLike,
options: StatSyncOptions & { bigint: true; },
): BigIntStats
(
path: PathLike,
options: StatSyncOptions & { bigint: boolean; throwIfNoEntry?: false | undefined; },
): Stats | BigIntStats
(
path: PathLike,
options?: StatSyncOptions,
):
Stats
| BigIntStats
| undefined