You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
An interface with two parents is not empty. It is a common way to merge disparate attributes into a meaningful composition.
For example, we use this by having three interfaces: HasWidth, HasHeight, and a 3rd called HasDimensions that implements the first two. Then there are functions that operate on the appropriate abstraction.
The text was updated successfully, but these errors were encountered:
Whether or not an alternative is cleaner does not change the fact that an interface with two parents is not empty. The preference for intersection types that you describe may be a valid preference, but it is a different tslint rule that should enforce that.
Bug Report
4.3.0
2.1.4
TypeScript code being linted
An interface with two parents is not empty. It is a common way to merge disparate attributes into a meaningful composition.
For example, we use this by having three interfaces: HasWidth, HasHeight, and a 3rd called HasDimensions that implements the first two. Then there are functions that operate on the appropriate abstraction.
The text was updated successfully, but these errors were encountered: