niieani / typescript-vs-flowtype

Differences between Flowtype and TypeScript -- syntax and usability
MIT License
1.74k stars 78 forks source link

Document contravariance and covariance #66

Open FezVrasta opened 4 years ago

FezVrasta commented 4 years ago

Flow supports contravariance (-), TypeScript doesn't.

Also, TypeScript doesn't support covariance (+) on all its types, but just some of them.

niieani commented 4 years ago

I'm open for PRs. Thanks for the issue.