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

Provide option for casting_syntax=as for relay.config.js when language is flow #4764

Open
short-dsb opened this issue Aug 5, 2024 · 0 comments

Comments

@short-dsb
Copy link

short-dsb commented Aug 5, 2024

We’d like to enable casting_syntax=as in our project’s .flowconfig, however the generated Flow types from the Relay compiler use the old : syntax, resulting in thousands of invalid-type-cast-syntax errors, which makes it difficult to identify the cases in our codebase that require updating.

It would be nice if there were an option for relay.config.js where we could opt-in to the new syntax, as it will eventually become the default.

At some point in the future we will remove the option and only support “as” casts, so code update your codebase!

Thanks for looking!

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

No branches or pull requests

1 participant