Skip to content

Commit 173cb40

Browse files
panagosg7meta-codesync[bot]
authored andcommitted
Upgrade Flow in fbsource (#60445)
Summary: Pull Request resolved: #60445 X-link: react/metro#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
1 parent 2173e09 commit 173cb40

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎packages/react-native/Libraries/vendor/emitter/__flowtests__/EventEmitter-flowtest.js‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,14 @@ subscription.listener;
6161
// $FlowExpectedError[prop-missing]
6262
subscription.once;
6363

64-
// $FlowExpectedError[invalid-tuple-arity]
6564
// $FlowExpectedError[extra-arg]
6665
emitter.emit('void', undefined);
6766
// $FlowExpectedError[incompatible-type]
6867
emitter.emit('string', 123);
69-
// $FlowExpectedError[invalid-tuple-arity]
7068
// $FlowExpectedError[incompatible-type]
7169
emitter.emit('strings', 'foo');
72-
// $FlowExpectedError[invalid-tuple-arity]
7370
// $FlowExpectedError[extra-arg]
7471
emitter.emit('strings', 'foo', 'bar', 'baz');
75-
// $FlowExpectedError[invalid-tuple-arity]
7672
// $FlowExpectedError[incompatible-type]
7773
emitter.emit('error');
7874
// $FlowExpectedError[prop-missing]

0 commit comments

Comments
 (0)