From 183044ea65032f280452cd996e17ac556ea29960 Mon Sep 17 00:00:00 2001 From: miikis Date: Tue, 9 Aug 2022 14:28:17 -0700 Subject: [PATCH] fix: reduce console instead of console.log Signed-off-by: miikis --- src/utils/terminal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/terminal.ts b/src/utils/terminal.ts index 5547fbd..6ebf189 100644 --- a/src/utils/terminal.ts +++ b/src/utils/terminal.ts @@ -9,7 +9,7 @@ type DisabledConsole = Console; export function makeLogger({ disabled }: { disabled: boolean }): Console | DisabledConsole { if (disabled) { const noop = () => undefined; - return Object.keys(console.log).reduce((disabledConsole, key) => { + return Object.keys(console).reduce((disabledConsole, key) => { // eslint-disable-next-line @typescript-eslint/no-explicit-any disabledConsole[key as keyof Console] = noop as any; return disabledConsole;