From 4ae425472dab90d59de6061e666349fe84ad10ac Mon Sep 17 00:00:00 2001 From: Panos Vekris Date: Tue, 1 Dec 2026 19:54:05 -0800 Subject: [PATCH] Upgrade Flow in fbsource (#2322) Summary: X-link: https://github.com/react/react-native/pull/60445 Upgrade Flow to the 0.343.0 build of December 1 in the first-party Flow roots, with 30 generated release suppressions. Flow now reports a call with the wrong number of arguments for a fixed-length tuple rest parameter as `extra-arg` or `incompatible-type` instead of `invalid-tuple-arity`, so `EventEmitter-flowtest.js` drops the `invalid-tuple-arity` codes that it kept for 0.342. Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D135432013 --- packages/metro-config/src/loadConfig.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/metro-config/src/loadConfig.js b/packages/metro-config/src/loadConfig.js index 7749eba6f5..0f3a521faa 100644 --- a/packages/metro-config/src/loadConfig.js +++ b/packages/metro-config/src/loadConfig.js @@ -138,12 +138,14 @@ function mergeConfigObjects( }, }, serializer: { + // $FlowFixMe[exponential-spread] ...base.serializer, // $FlowFixMe[exponential-spread] ...overrides.serializer, }, transformer: { ...base.transformer, + // $FlowFixMe[exponential-spread] ...overrides.transformer, // $FlowFixMe[exponential-spread] ...(overrides.transformer?.babelTransformerPath != null @@ -174,11 +176,13 @@ function mergeConfigObjects( : null), }, symbolicator: { + // $FlowFixMe[exponential-spread] ...base.symbolicator, // $FlowFixMe[exponential-spread] ...overrides.symbolicator, }, watcher: { + // $FlowFixMe[exponential-spread] ...base.watcher, // $FlowFixMe[exponential-spread] ...overrides.watcher,