Add a setting to turn off type guard removal / mutation risk check
ayroblu opened this issue · 0 comments
ayroblu commented
Proposal
Add a setting to turn off the removal of type guards after a function call
A common complaint about flow is the frustration of the following:
Use case
TypeScript doesn't do this. I understand why it's strictly correct. However, this frustrates our engineers and makes us write useless code to do all the unnecessary checks. Adding a setting that allows us to turn off this would be greatly appreciated
I'm not sure what you call this feature, but I didn't find an option in the config settings here: https://flow.org/en/docs/config/options/