11 lines
451 B
TypeScript
Raw Normal View History

2025-09-05 14:59:21 +08:00
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* This function is equivalent to `JSON.stringify`, but it also handles RegExp objects.
*/
export declare function jsonStringify(value: any): string;
/**
* Converts a JavaScript Object Notation (JSON) string into an object.
* This function is equivalent to `JSON.parse`, but it also handles RegExp objects.
*/
export declare function jsonParse(value: string): any;