From dd63815364c5d684a946dc3d9ec3af6090fbfde9 Mon Sep 17 00:00:00 2001 From: Ely Lucas Date: Mon, 30 Aug 2021 12:18:16 -0600 Subject: [PATCH] chore: set console methods to any to avoid new error in TS 4.4 --- core/native-bridge.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/native-bridge.ts b/core/native-bridge.ts index dadf1bbd7..f19360f2f 100644 --- a/core/native-bridge.ts +++ b/core/native-bridge.ts @@ -302,11 +302,11 @@ const initBridge = (w: any): void => { // patch window.console on iOS and store original console fns const isIos = getPlatformId(win) === 'ios'; - const originalConsole = { ...win.console }; + const originalConsole: any = { ...win.console }; if (win.console && isIos) { for (const logfn of BRIDGED_CONSOLE_METHODS) { - win.console[logfn] = (...args: any[]) => { + (win.console[logfn] as any) = (...args: any[]) => { const msgs = [...args]; originalConsole[logfn](...msgs);