mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
45d61cf7ef
This Flow upgrade includes 2 fixes: - Remove `React$StatelessFunctionalComponent` as that was replaced by just `React$AbstractComponent` as Flow doesn't make any guarantees, see the Flow change here: https://github.com/facebook/flow/commit/521317c48f44ffb5eac072a7b2548a72b0745095 - Flow no longer allows `number` type indexing into objects which discovered an incorrect type that is actually an array of the data. Used this command to upgrade ``` yarn add -W flow-bin flow-remove-types hermes-parser hermes-eslint ``` and ran `yarn flow-ci` to check for errors in different configurations.