Update Flow to 0.274 (#34275)
An exported needed explicit typing as it was inferred incorrectly.
Jan Kassens committed
Aug 22, 2025 at 17:46 UTC
090777d78a4d61462dc984b9bba169edd3e7c088
3 files changed
+9
-8
package.json
+2
-2
@@ -74,8 +74,8 @@
74
"eslint-plugin-react-internal": "link:./scripts/eslint-rules",
75
"fbjs-scripts": "^3.0.1",
76
"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",
79
"flow-typed": "^4.1.1",
80
"glob": "^7.1.6",
81
"glob-stream": "^6.1.0",
packages/react-native-renderer/src/ReactNativeBridgeEventPlugin.js
+2
-1
@@ -10,6 +10,7 @@
10
import type {
11
AnyNativeEvent,
12
EventTypes,
13
+ LegacyPluginModule,
14
} from './legacy-events/PluginModuleType';
15
import type {TopLevelType} from './legacy-events/TopLevelEventTypes';
16
import SyntheticEvent from './legacy-events/SyntheticEvent';
@@ -165,7 +166,7 @@ function accumulateDirectDispatches(events: ?(Array<Object> | Object)) {
166
// End of inline
167
type PropagationPhases = 'bubbled' | 'captured';
168
168
-const ReactNativeBridgeEventPlugin = {
169
+const ReactNativeBridgeEventPlugin: LegacyPluginModule<AnyNativeEvent> = {
170
eventTypes: ({}: EventTypes),
171
172
extractEvents: function (
yarn.lock
+5
-5
@@ -9298,12 +9298,12 @@ flatted@^3.2.9:
9298
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.1.tgz#21db470729a6734d4997002f439cb308987f567a"
9299
integrity sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==
9300
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==
9305
9306
-flow-remove-types@^2.273:
9306
+flow-remove-types@^2.274:
9307
version "2.279.0"
9308
resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-2.279.0.tgz#3a3388d9158eba0f82c40d80d31d9640b883a3f5"
9309
integrity sha512-bPFloMR/A2b/r/sIsf7Ix0LaMicCJNjwhXc4xEEQVzJCIz5u7C7XDaEOXOiqveKlCYK7DcBNn6R01Cbbc9gsYA==