UNPKG

@ably/cli

Version:

Ably CLI for Pub/Sub, Chat and Spaces

13 lines (12 loc) 445 B
/** * Format JSON data with syntax highlighting for console output * @param data Any data that can be serialized to JSON * @returns A colored string representation of the JSON data */ export declare function formatJson(data: unknown): string; /** * Determine if data is likely to be JSON * @param data The data to check * @returns True if the data is a JSON object or array */ export declare function isJsonData(data: unknown): boolean;