diff --git a/.flowconfig b/.flowconfig index 33f7dc37cd8..52b09a82977 100644 --- a/.flowconfig +++ b/.flowconfig @@ -91,4 +91,4 @@ untyped-import untyped-type-import [version] -^0.239.1 +^0.241.0 diff --git a/package.json b/package.json index f1ddd703f3c..897d7bdfa16 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,7 @@ "eslint-plugin-redundant-undefined": "^0.4.0", "eslint-plugin-relay": "^1.8.3", "flow-api-translator": "0.22.0", - "flow-bin": "^0.239.1", + "flow-bin": "^0.241.0", "glob": "^7.1.1", "hermes-eslint": "0.22.0", "hermes-transform": "0.22.0", diff --git a/packages/react-native/Libraries/vendor/emitter/EventEmitter.js b/packages/react-native/Libraries/vendor/emitter/EventEmitter.js index f640082fef3..6aaad2ea4db 100644 --- a/packages/react-native/Libraries/vendor/emitter/EventEmitter.js +++ b/packages/react-native/Libraries/vendor/emitter/EventEmitter.js @@ -113,6 +113,7 @@ export default class EventEmitter // Copy `registrations` to take a snapshot when we invoke `emit`, in case // registrations are added or removed when listeners are invoked. for (const registration of Array.from(registrations)) { + // $FlowFixMe[incompatible-call] registration.listener.apply(registration.context, args); } } diff --git a/yarn.lock b/yarn.lock index 893710c78e9..4a92397c463 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5321,10 +5321,10 @@ flow-api-translator@0.22.0: hermes-transform "0.22.0" typescript "5.3.2" -flow-bin@^0.239.1: - version "0.239.1" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.239.1.tgz#5637548bc9448f9c21203e89b3ac0b8e6a442d1e" - integrity sha512-cOfqvzHBjFwiRBKRjbzWpc4psLEv+HBFR6lCsRVuc+Gvc0XSDOYU2BDaAWWXNi4ynBIsM8QAk4SD6Ul/IXNSdw== +flow-bin@^0.241.0: + version "0.241.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.241.0.tgz#5feaa98f6c892b5869ec936b46d6ad6d91b664f9" + integrity sha512-R1WROxAuWCOF5gMVqVYbb3iUvqP2OQyaYLSrkUxZrLonvjUJeedGx7nv79tdkoB7eRja3kY+/lQ/nbPtkFsqOA== flow-enums-runtime@^0.0.6: version "0.0.6"