Skip to content

Commit 090777d

Browse files
authored
Update Flow to 0.274 (facebook#34275)
An exported needed explicit typing as it was inferred incorrectly.
1 parent 4049cfe commit 090777d

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474
"eslint-plugin-react-internal": "link:./scripts/eslint-rules",
7575
"fbjs-scripts": "^3.0.1",
7676
"filesize": "^6.0.1",
77-
"flow-bin": "^0.273",
78-
"flow-remove-types": "^2.273",
77+
"flow-bin": "^0.274",
78+
"flow-remove-types": "^2.274",
7979
"flow-typed": "^4.1.1",
8080
"glob": "^7.1.6",
8181
"glob-stream": "^6.1.0",

packages/react-native-renderer/src/ReactNativeBridgeEventPlugin.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import type {
1111
AnyNativeEvent,
1212
EventTypes,
13+
LegacyPluginModule,
1314
} from './legacy-events/PluginModuleType';
1415
import type {TopLevelType} from './legacy-events/TopLevelEventTypes';
1516
import SyntheticEvent from './legacy-events/SyntheticEvent';
@@ -165,7 +166,7 @@ function accumulateDirectDispatches(events: ?(Array<Object> | Object)) {
165166
// End of inline
166167
type PropagationPhases = 'bubbled' | 'captured';
167168

168-
const ReactNativeBridgeEventPlugin = {
169+
const ReactNativeBridgeEventPlugin: LegacyPluginModule<AnyNativeEvent> = {
169170
eventTypes: ({}: EventTypes),
170171

171172
extractEvents: function (

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9298,12 +9298,12 @@ flatted@^3.2.9:
92989298
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.1.tgz#21db470729a6734d4997002f439cb308987f567a"
92999299
integrity sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==
93009300

9301-
flow-bin@^0.273:
9302-
version "0.273.1"
9303-
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.273.1.tgz#18621f169ecbabe3656c56980ebaabc439ee76c1"
9304-
integrity sha512-OlJkNCSd+i6z5xDoyGiS+3X5xYQx+vVUY2iUw6cHJR0LK3ttyA1wkiI93OuBALhLhF91KayzGhRSzXHqA75iUw==
9301+
flow-bin@^0.274:
9302+
version "0.274.2"
9303+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.274.2.tgz#79cff569aab38eb04f6b1e64b899c932a51444a4"
9304+
integrity sha512-vTF+5hiC5qymweFKj7xs5ABlDqMWbB2fPkYC4MI32m652dFYsq/zvEVNc2M09udwAzplLcMIK2O9VswPfd8Isw==
93059305

9306-
flow-remove-types@^2.273:
9306+
flow-remove-types@^2.274:
93079307
version "2.279.0"
93089308
resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-2.279.0.tgz#3a3388d9158eba0f82c40d80d31d9640b883a3f5"
93099309
integrity sha512-bPFloMR/A2b/r/sIsf7Ix0LaMicCJNjwhXc4xEEQVzJCIz5u7C7XDaEOXOiqveKlCYK7DcBNn6R01Cbbc9gsYA==

0 commit comments

Comments
 (0)