UNPKG

guardflux

Version:

A light callable lib to keep your API alive

14 lines (13 loc) 825 B
/** * Checks whether a given object is empty. * @param object - An object of type Record<string, unknown> (key-value pairs where the keys are strings and the values are of any type). * @returns A boolean value - true if the object has no properties, otherwise false. */ export declare function isObjectEmpty(object: Record<string, unknown>): boolean; /** * Logs data to the console if the application is in development mode. * @param data - The data to be logged (can be of any type, such as a string, number, object, etc.). * @param devMode - A boolean flag indicating whether the application is running in development mode. * @returns void - This function does not return anything; it only logs the data to the console if devMode is true. */ export declare function devDebugger(data: any, devMode: boolean): void;