Skip to content

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

Open
@ayroblu

Description

@ayroblu

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/

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions