Interface vs Type
When to use interfaces vs type aliases.
Similarities
Declaration Merging (Interface Only)
Union Types (Type Only)
Extending
Primitives and Tuples (Type Only)
Computed Properties (Type Only)
When to Use Which
Exercise: Choose the Right One
Fix the code by using the appropriate construct:
Up next · Lesson 17 of 34
Class Types
1 min read
16 of 34 lessons done

Ask Byte about this lesson
A private chat about this lesson. Byte has read the whole lesson, answers in seconds, and shows the section each answer comes from. Ask follow-ups in any language.
Questions & Answers
Public questions about this lesson. The AI Tutor answers right away in your language, the FreeAcademy team checks answers, and every learner can read them.

