1.0.3 • Published 6 months ago
@types/apimatic__json-bigint v1.0.3
Installation
npm install --save @types/apimatic__json-bigint
Summary
This package contains type definitions for @apimatic/json-bigint (https://github.com/apimatic/json-bigint#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/apimatic__json-bigint.
index.d.ts
// Type definitions for @apimatic/json-bigint 1.0
// Project: https://github.com/apimatic/json-bigint#readme
// Definitions by: Wajahat <https://github.com/wajahatiqbal>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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 '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 Sep 2021 21:01:20 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Wajahat.