@devlander/utils
Version:
Comprehensive JavaScript and TypeScript utilities for seamless development. Includes object manipulation, data validation, and more.
9 lines (8 loc) • 349 B
TypeScript
/**
* Removes spaces from a JSON object or string.
*
* @param jsonInput - The JSON object or string to remove spaces from.
* @returns The JSON object with spaces removed.
* @throws {Error} If the input is not a valid JSON.
*/
export declare const removeSpacesFromJson: (jsonInput: string | Record<string, unknown>) => Record<string, unknown>;