JSPM

@types/json-bigint

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 335030
  • Score
    100M100P100Q175721F
  • License MIT

TypeScript definitions for json-bigint

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/json-bigint) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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: Wed, 18 Oct 2023 05:47:07 GMT
    • Dependencies: none

    Credits

    These definitions were written by yamachu.