niieani/typescript-vs-flowtype

Document contravariance and covariance

Open

#66 opened on Nov 22, 2019

 (1 comment) (1 reaction) (0 assignees) (76 forks)github user discovery
help wanted

Repository metrics

Stars
 (1,728 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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

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

Contributor guide