Installation
npm install --save @types/big-json
Summary
This package contains type definitions for big-json (https://github.com/DonutEspresso/big-json).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/big-json.
index.d.ts
/// <reference types="node" />
import type { Stream } from "node:stream";
export function createParseStream(): Stream;
export function createStringifyStream(opts: { body: object }): Stream;
export function parse(opts: { body: string | Buffer }): Promise<object | readonly object[]>;
export function parse(
opts: { body: string | Buffer },
callback: (result: object | readonly object[]) => void,
): void;
export function stringify(opts: { body: object }): Promise<string>;
export function stringify(opts: { body: object }, callback: (result: string) => void): void;
Additional Details
- Last updated: Mon, 20 Nov 2023 23:36:23 GMT
- Dependencies: @types/node
Credits
These definitions were written by PCOffline.