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

Adds a syntax comparison table linked from the FAQ #204

Closed takikawa closed 10 months ago

takikawa commented 11 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 11 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 11 months ago

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