from-schema
Version:
Infer TypeScript types from JSON schemas
11 lines (10 loc) • 504 B
TypeScript
/**
* Stringifies a JavaScript value into a BON (JSON with BigInt support) string.
*
* @param value The value to stringify
* @param space Optional space for formatting (not currently used)
* @param seen Optional Set of already seen objects (used internally for circular reference detection)
* @returns The BON string representation
* @throws Error for circular references or unsupported types
*/
export declare const stringifyBON: (value: unknown, space?: string, seen?: Set<unknown>) => string;