From 3dd4732acad55a0b985022f50169df444ad96cb5 Mon Sep 17 00:00:00 2001 From: Sam Zhou Date: Fri, 22 Mar 2024 18:12:31 -0700 Subject: [PATCH] Fix some cyclic types Summary: Changelog: [Internal] Differential Revision: D55271602 --- 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, ... };