From 37e362699451de6636fd104d76cc7cc2bf748553 Mon Sep 17 00:00:00 2001 From: Sam Zhou Date: Sat, 23 Mar 2024 13:42:20 -0700 Subject: [PATCH] Fix some cyclic types (#43630) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/43630 Changelog: [Internal] Reviewed By: gkz Differential Revision: D55271602 fbshipit-source-id: cb93fae6231ade6e5865dd7e0756a12568dece12 --- packages/react-native/Libraries/Core/ExceptionsManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native/Libraries/Core/ExceptionsManager.js b/packages/react-native/Libraries/Core/ExceptionsManager.js index 78252549622736..41186fa3626d51 100644 --- a/packages/react-native/Libraries/Core/ExceptionsManager.js +++ b/packages/react-native/Libraries/Core/ExceptionsManager.js @@ -126,8 +126,8 @@ function reportException( } declare var console: { - error: typeof console.error, - _errorOriginal: typeof console.error, + error: (...data: $ReadOnlyArray) => void, + _errorOriginal: (...data: $ReadOnlyArray) => void, reportErrorsAsExceptions: boolean, ... };