Installation
npm install --save @types/read-json-sync
Summary
This package contains type definitions for read-json-sync (https://github.com/shinnn/read-json-sync#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/read-json-sync.
index.d.ts
/// <reference types="node"/>
import { readFileSync } from "fs";
import { URL } from "url";
type ReadFileOptions = Extract<Parameters<typeof readFileSync>[1], object>;
declare function readJsonSync(path: string | Buffer | URL | number, options?: ReadFileOptions | string): any;
export = readJsonSync;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/node
Credits
These definitions were written by Junxiao Shi.