tc39 / proposal-type-annotations

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

Adds a syntax comparison table linked from the FAQ #204

Closed takikawa closed 6 months ago

takikawa commented 7 months ago

Some members of the community and proposal authors have been putting together a spreadsheet comparing type syntaxes that are in use in the community today (though not 100% comprehensive). For easier access, this PR adds it to the repo in markdown format.

gkz commented 7 months ago

The row for "Union type" is screwed up, probably due to conflict with markdown syntax.

For "Dotted/variadic polymorphism" for Flow, you can put "Same as TS" (we support tuple type spread)

For "casting syntax" (as) for Flow, you can put "Same as TS" (announcement coming soon)

takikawa commented 7 months ago

Thanks for the feedback, I've updated the PR with all those points now.