tc39 / proposal-type-annotations

ECMAScript proposal for type syntax that is erased - Stage 1
https://tc39.es/proposal-type-annotations/
4.27k stars 47 forks source link

Update grammar to cover Flow syntax differences #195

Open gkz opened 1 year ago

gkz commented 1 year ago

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: