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

Alternative to weak mode? #9211

Open
mlp1802 opened this issue Sep 30, 2024 · 1 comment
Open

Alternative to weak mode? #9211

mlp1802 opened this issue Sep 30, 2024 · 1 comment

Comments

@mlp1802
Copy link

mlp1802 commented Sep 30, 2024

Weak mode allowed you gradually convert a file. Now you can gradually convert the project, one file at a time, but you can't work on a file here and a file there, not without fixing them completely. If there is no alternative I believe it defeats the entire purpose of flow..and people would just use TS instead, if the hassle is almost he same.

@jgclark
Copy link

jgclark commented Oct 28, 2024

On a related note, I'd love to be able to ignore a type of warning/error for the whole of a file in a single directive. At the moment this doesn't seem possible at all.
Use case: I have a file that generates dummy/demo data objects. For flexibility and extensibility, the ID field is generated in the main processing. It's tedious to have to declare $FlowIgnore[missing-prop] on every object. But I want to know about those errors in every other file in the project, so I can't turn it off at the project level.

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

2 participants