Skip to content

v7.0.0

Compare
Choose a tag to compare
@gajus gajus released this 24 May 08:19
2605705

7.0.0 (2019-05-24)

  • Merge pull request #259 from brettz9/check-types-preferred-generic-specific (2605705), closes #259

BREAKING CHANGES

  • Cause preferredTypes setting not to apply by default to parent types; need to target type name with "<>" appended to target parent types (and only parent types); can alternatively; also adds option unifyParentAndChildTypeChecks to restore the old behavior

Allows for warning against overly generic types only (e.g., Array without its own children) or against the parent type only (to disallow Array.<someType>)

To restore old behavior, also target type names with "<>" or set the unifyParentAndChildTypeChecks option.