from-schema
Version:
Infer TypeScript types from JSON schemas
8 lines (7 loc) • 313 B
TypeScript
/**
* Parses a BON (JSON with BigInt support) string into a JavaScript value
* @param input The BON string to parse
* @returns The parsed JavaScript value
* @throws Error if the input is invalid BON syntax or contains potentially harmful structures
*/
export declare const parseBON: <T>(input: string) => T;