Skip to content

Commit

Permalink
chore: set console methods to any to avoid new error in TS 4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
elylucas authored Aug 30, 2021
1 parent 97f725a commit dd63815
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/native-bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dd63815

Please sign in to comment.