From 40f7dc15cba0a327fdac6ff21cf31b0d73f2764d Mon Sep 17 00:00:00 2001 From: Panos Vekris Date: Tue, 1 Dec 2026 19:53:35 -0800 Subject: [PATCH] Upgrade Flow in fbsource (#60445) Summary: X-link: https://github.com/react/metro/pull/2322 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 --- .../vendor/emitter/__flowtests__/EventEmitter-flowtest.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/react-native/Libraries/vendor/emitter/__flowtests__/EventEmitter-flowtest.js b/packages/react-native/Libraries/vendor/emitter/__flowtests__/EventEmitter-flowtest.js index e458bb847dc..43171ac9ae1 100644 --- a/packages/react-native/Libraries/vendor/emitter/__flowtests__/EventEmitter-flowtest.js +++ b/packages/react-native/Libraries/vendor/emitter/__flowtests__/EventEmitter-flowtest.js @@ -61,18 +61,14 @@ subscription.listener; // $FlowExpectedError[prop-missing] subscription.once; -// $FlowExpectedError[invalid-tuple-arity] // $FlowExpectedError[extra-arg] emitter.emit('void', undefined); // $FlowExpectedError[incompatible-type] emitter.emit('string', 123); -// $FlowExpectedError[invalid-tuple-arity] // $FlowExpectedError[incompatible-type] emitter.emit('strings', 'foo'); -// $FlowExpectedError[invalid-tuple-arity] // $FlowExpectedError[extra-arg] emitter.emit('strings', 'foo', 'bar', 'baz'); -// $FlowExpectedError[invalid-tuple-arity] // $FlowExpectedError[incompatible-type] emitter.emit('error'); // $FlowExpectedError[prop-missing]