@augment-vir/common
Version:
A collection of augments, helpers types, functions, and classes for any JavaScript environment.
18 lines (17 loc) • 542 B
TypeScript
/**
* A safe value -> JSON serializer that handles circular references and truncates the depth and
* breadth of the given value's serialization.
*
* @category JSON : Common
* @category Package : @augment-vir/common
* @example
*
* ```ts
* import {safeJsonStringify} from '@augment-vir/common';
*
* safeJsonStringify({some: 'value'});
* ```
*
* @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
*/
export declare function safeJsonStringify(...params: Parameters<typeof JSON.stringify>): string;