Skip to main content
StatSyncFn - fs - Node documentation
interface StatSyncFn
extends Function

Usage in Deno

import { type StatSyncFn } from "node:fs";

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