Assertion: interface | /r/HasProperty | class
Facets:
Source sentences:
text: The TypeScript compiler also checks for excess properties on an object and gives an error if an object contains a property that is defined in the interface We also learned how to define Indexable properties using interfaces Classes can implement an interface.
text: An interface is a kind of type, just like a class.
text: If a new method is added to an interface, all classes that implement it must change to include the new method, even if all implementations are identical.