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

Update grammar to cover Flow syntax differences #195

Open
8 tasks
gkz opened this issue Sep 21, 2023 · 0 comments
Open
8 tasks

Update grammar to cover Flow syntax differences #195

gkz opened this issue Sep 21, 2023 · 0 comments

Comments

@gkz
Copy link
Collaborator

gkz commented Sep 21, 2023

A spreadsheet was created to document the different syntax between TypeScript, Flow, and some other type systems: https://docs.google.com/spreadsheets/d/1db9I5Yn495VIdOUFCKVbpoVlAyHlgW8fgyHwuXX4Ro4/edit#gid=1730464012

The grammar needs to be updated to take into account these differences. This would be in line with the commitment at the March 2022 TC39 meeting to make the proposal inclusive and not TypeScript specific.

I was asked to create this issue, so here it is!

TODO list:

Some other differences are covered under the "token soup" as is currently proposed as far as I can see.

Can ignore for now:

  • Explicit object types {| |} - will eventually be deprecated
  • Casting syntax (x: T) - will be changing this
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