What does TypeScript’s ‘strictFunctionTypes’ option change about function type compatibility?

TypeScript Professional Medium

TypeScript Professional — Medium

What does TypeScript’s ‘strictFunctionTypes’ option change about function type compatibility?

Key points

  • 'strictFunctionTypes' focuses on contravariant checks
  • It specifically targets method-like function types
  • Helps catch unsafe bivariant assignments
  • Ensures stricter type compatibility for functions

Ready to go further?

Related questions