UNPKG

guardz

Version:

A simple and lightweight TypeScript type guard library for runtime type validation.

8 lines (7 loc) 275 B
/** * Converts a JavaScript value to a formatted JSON string. * * @param value - The value to convert to a JSON string. * @returns A formatted JSON string or the string 'undefined' if the value is undefined. */ export declare function stringify(value: unknown): string;