@blue-impact-engine/blue-impact-engine-client
Version:
Blue Impact Engine API Client
37 lines • 1.15 kB
TypeScript
/**
* Data transformation utilities
*/
export declare const transform: {
/**
* Convert object keys to camelCase
* @param obj - Object to transform
* @returns object - Object with camelCase keys
*/
toCamelCase<T extends Record<string, any>>(obj: T): T;
/**
* Convert object keys to snake_case
* @param obj - Object to transform
* @returns object - Object with snake_case keys
*/
toSnakeCase<T extends Record<string, any>>(obj: T): T;
/**
* Deep clone an object
* @param obj - Object to clone
* @returns object - Cloned object
*/
deepClone<T>(obj: T): T;
/**
* Remove undefined and null values from object
* @param obj - Object to clean
* @returns object - Cleaned object
*/
removeEmptyValues<T extends Record<string, any>>(obj: T): Partial<T>;
/**
* Flatten nested object
* @param obj - Object to flatten
* @param prefix - Key prefix
* @returns object - Flattened object
*/
flattenObject(obj: Record<string, any>, prefix?: string): Record<string, any>;
};
//# sourceMappingURL=transformationUtils.d.ts.map