Upgrade Flow in fbsource (#58192)

Summary: Pull Request resolved: https://github.com/react/react-native/pull/58192

Reviewed By: SamChou19815

Differential Revision: D117992492

fbshipit-source-id: bc3a32b4420243b6675439e0840559b85507c3dd
This commit is contained in:
generatedunixname1026736676487289 authored and meta-codesync[bot] committed 2026-08-29 11:23:04 -07:00
1 parent c6b137cac9
commit 2fa055f6a7
2 files changed
+5

No files matched your search

@@ -149,6 +149,7 @@ export default class EventEmitter<
// $FlowFixMe[incompatible-type]
this.#registry = {};
} else {
// $FlowFixMe[cannot-write]
delete this.#registry[eventType];
}
}
@@ -178,6 +179,7 @@ function allocate<
registry[eventType];
if (registrations == null) {
registrations = new Set();
// $FlowFixMe[cannot-write]
registry[eventType] = registrations;
}
return registrations;
@@ -121,6 +121,7 @@ export function getOverrides(
config.flags[flagType],
)) {
if (flagValue !== DEFAULT_FEATURE_FLAGS[flagType][flagName]) {
// $FlowFixMe[cannot-write]
flags[flagType][flagName] = flagValue;
}
}
@@ -356,6 +357,7 @@ export default function getFantomTestConfigs(
flagConfig.defaultValue,
rawValue,
);
// $FlowFixMe[cannot-write]
config.flags.common[name] = value;
}
} else if (ReactNativeFeatureFlags.jsOnly[name]) {
@@ -375,6 +377,7 @@ export default function getFantomTestConfigs(
flagConfig.defaultValue,
rawValue,
);
// $FlowFixMe[cannot-write]
config.flags.jsOnly[name] = value;
}
} else {