@visulima/fs
Version:
Human friendly file system utilities for Node.js
6 lines (5 loc) • 366 B
TypeScript
import type { JsonValue } from "type-fest";
import type { JsonReviver, ReadJsonOptions } from "../types.d.ts";
declare function readJsonSync<T extends JsonValue>(path: URL | string, options?: ReadJsonOptions): T;
declare function readJsonSync<T extends JsonValue>(path: URL | string, reviver: JsonReviver, options?: ReadJsonOptions): T;
export default readJsonSync;