rich-domain
Version:
This package provide utils file and interfaces to assistant build a complex application with domain driving design
21 lines • 837 B
TypeScript
/**
* @description Converts a JavaScript value into a specialized flatted string. This method serializes
* complex objects, including circular references, into a flat structure.
*
* @param value The JavaScript value to be stringified.
*
* @returns A flatted string representation of the value.
*
* @example
* ```typescript
* const obj = { a: 1 };
* obj.self = obj;
* const result = stringify(obj);
* console.log(result); // Outputs a flatted string representing the object with circular references.
* ```
*
* @note This method is not intended for general serialization and should not be used for long-term storage.
* @todo Test implementation with various scenarios, including deeply nested and circular structures.
*/
export declare const stringify: (value: any) => string;
//# sourceMappingURL=stringify.util.d.ts.map