Refactor card.ts substantially and test.
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { CardWideConfig } from '../types';
|
||||
|
||||
export const log = (cardWideConfig?: CardWideConfig, ...args: unknown[]) => {
|
||||
export const log = (cardWideConfig?: CardWideConfig | null, ...args: unknown[]) => {
|
||||
if (cardWideConfig?.debug?.logging) {
|
||||
console.debug(...args);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user