@types/read-json-sync
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/read-json-sync

Weekly Downloads

199

Version

2.0.3

License

MIT

Unpacked Size

3.27 kB

Total Files

5

Last publish

Collaborators

  • types