datasquirel/dist/package-shared/utils/logging/debug-log.d.ts
Benjamin Toby 8b3553fcd5 Updates
2025-02-13 08:18:46 +01:00

26 lines
563 B
TypeScript

declare const LogTypes: readonly ["error", "warning"];
type Param = {
/**
* data to be logged.
*/
log: any;
/**
* Log Title. Could be name of function or name of variable
*/
title?: string;
/**
* Label for the log
*/
label?: string;
/**
* Log type. `error` or `warning` or default
*/
type?: (typeof LogTypes)[number];
/**
* Whether to add a time stamp
*/
addTime?: boolean;
};
export default function debugLog({ log, label, title, type, addTime }: Param): void;
export {};