Skip to content

Commit 2c3295b

Browse files
panagosg7facebook-github-bot
authored andcommitted
Upgrade Flow in fbsource
Summary: 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 the expected-error codes in `EventEmitter-flowtest.js` change to match. Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D135432013
1 parent b49769c commit 2c3295b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

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

64-
// $FlowExpectedError[invalid-tuple-arity]
64+
// $FlowExpectedError[extra-arg]
6565
emitter.emit('void', undefined);
6666
// $FlowExpectedError[incompatible-type]
6767
emitter.emit('string', 123);
68-
// $FlowExpectedError[invalid-tuple-arity]
68+
// $FlowExpectedError[incompatible-type]
6969
emitter.emit('strings', 'foo');
70-
// $FlowExpectedError[invalid-tuple-arity]
70+
// $FlowExpectedError[extra-arg]
7171
emitter.emit('strings', 'foo', 'bar', 'baz');
72-
// $FlowExpectedError[invalid-tuple-arity]
72+
// $FlowExpectedError[incompatible-type]
7373
emitter.emit('error');
7474
// $FlowExpectedError[prop-missing]
7575
emitter.emit('does-not-exist');

0 commit comments

Comments
 (0)