Interfaces vs type aliases
Comes up in: Recruiter screen
This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.
What it covers
- both describe object shapes
- interfaces can merge and
extends - aliases can name unions, tuples, mapped types
- intersections vs extends (conflicts)
- team conventions
Words you will know
What you will practise
- choose interface vs type in 6 cases
Interview questions this answers
- Interface vs type alias: what are the differences?