@augment-vir/common
Version:
A collection of augments, helpers types, functions, and classes for any JavaScript environment.
19 lines (18 loc) • 778 B
TypeScript
/**
* A simple wrapper for `json5.parse`. This is abstracted so that we don't have to worry about
* remembering how to import json5 because a wrong import (like `import * as json5 from 'json5'`)
* will fail at runtime but _not_ at build time.
*
* @category JSON : Common
* @category Package : @augment-vir/common
*/
export declare function parseWithJson5(input: string): any;
/**
* A simple wrapper for `json5.stringify`. This is abstracted so that we don't have to worry about
* remembering how to import json5 because a wrong import (like `import * as json5 from 'json5'`)
* will fail at runtime but _not_ at build time.
*
* @category JSON : Common
* @category Package : @augment-vir/common
*/
export declare function stringifyWithJson5(input: unknown): string;