beginner30 minby DevFox

type or interface: a simple rule for choosing

Choose between type and interface with one rule: an object’s outline is an interface, everything else is a type. See that interface names only outlines, that two interfaces with one name merge while two type aliases are a Duplicate identifier, and switch TaskKit’s Task to an interface.

  • TypeScript
  • Fundamentals
`type` or `interface`: a simple rule for choosing. Read this lesson at .