Hacker News new | ask | show | jobs
by besquared 3151 days ago
They added contravariant functions in 2.6 using the compiler flag --strictFunctionTypes as described in this PR https://github.com/Microsoft/TypeScript/pull/18654