Level 1M6Lesson 6.4

beginner30 minby DevFox

Interfaces and extends

Name an object’s outline with interface and build a bigger one on top of it with extends: a PlannedTask is a Task plus minutes. See that an interface is checked like an alias, that TS2739 lists the missing properties, and that a PlannedTask fits wherever a Task is wanted, never the other way round.

  • Fundamentals
  • TypeScript
Interfaces and `extends`. Read this lesson at .