Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a setting to turn off type guard removal / mutation risk check #9150

Open
ayroblu opened this issue May 20, 2024 · 0 comments
Open

Add a setting to turn off type guard removal / mutation risk check #9150

ayroblu opened this issue May 20, 2024 · 0 comments

Comments

@ayroblu
Copy link

ayroblu commented May 20, 2024

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:

try flow

image

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant