Engrain by ByteRush

FND.13.02 JuniorCore — asked often

Object types, unions and narrowing (first look)

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

  • type and interface
  • optional properties
  • union types
  • narrowing with typeof and in
  • literal types

Words you will know

interfaceunionnarrowingliteral type

What you will practise

  • model API responses

Interview questions this answers

  • What is the difference between type and interface?