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

3.2.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/big-json

Weekly Downloads

11,424

Version

3.2.4

License

MIT

Unpacked Size

3.76 kB

Total Files

5

Last publish

Collaborators

  • types