@lou.codes/test
Version:
✅ Equality test with enforced readability
16 lines (15 loc) • 445 B
TypeScript
/**
* Colorizes and formats a value based on its type.
*
* @category Output
* @example
* ```typescript
* formatValue(1); // "1" (with colors)
* formatValue(BigInt(1)); // "1n" (with colors)
* formatValue([]); // "Array([])" (with colors)
* formatValue({}); // "Object({})" (with colors)
* ```
* @param value Value to colorize.
* @returns Colorized value as a string.
*/
export declare const formatValue: (value: unknown) => string;