Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set one_sided_type_guards=true in fbsource (#45107)
Summary: This diff enables: 1. [one-sided type guards](https://flow.org/en/docs/types/type-guards/#one-sided-type-guards) (`implies x is T`), and 2. stricter checking of type guard consistency (see [relevant docs page](https://flow.org/en/docs/types/type-guards/#toc-consistency-checks-of-type-guard-functions)). To prevent many new errors from being introduced this diff also converts some two-sided type guards to [one-sided](https://flow.org/en/docs/types/type-guards/#one-sided-type-guards) ones. Pull Request resolved: #45107 Updated the flowconfigs and synced flow_runner/codemods since the change has already been applied there: ``` js1 upgrade www-shared -p flow_runner/codemods ``` Changelog: [Internal] Reviewed By: gkz Differential Revision: D58874409 fbshipit-source-id: 959a6773701518a1d6aa35e2ec28fd4ce12d2e75
- Loading branch information