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

1.0.4 • Public • Published

Installation

npm install --save @types/json-bigint

Summary

This package contains type definitions for json-bigint (https://github.com/sidorares/json-bigint#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-bigint.

index.d.ts

declare const stringify: typeof JSON.stringify;
declare const parse: typeof JSON.parse;

declare function JSONBig(options?: Options): { parse: typeof parse; stringify: typeof stringify };

interface Options {
    /**
     * @default false
     */
    strict?: boolean | undefined;
    /**
     * @default false
     */
    storeAsString?: boolean | undefined;
    /**
     * @default false
     */
    alwaysParseAsBig?: boolean | undefined;
    /**
     * @default false
     */
    useNativeBigInt?: boolean | undefined;
    /**
     * @default 'error'
     */
    protoAction?: "error" | "ignore" | "preserve" | undefined;
    /**
     * @default 'error'
     */
    constructorAction?: "error" | "ignore" | "preserve" | undefined;
}

type JSONBigExport = typeof JSONBig & { parse: typeof parse; stringify: typeof stringify };

declare const _: JSONBigExport;
export = _;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by yamachu.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/json-bigint

Weekly Downloads

105,375

Version

1.0.4

License

MIT

Unpacked Size

4.3 kB

Total Files

5

Last publish

Collaborators

  • types