Chapter 01
Type system basics
How TypeScript decides whether one type fits another, and the core building blocks: structural typing,any / unknown / never, literal types, object and function types.6 questions
- 010What is the difference between
typeandinterface?Coming soonCoremedium - 020What is structural typing, and how does it differ from nominal typing?Coming soonCoremedium
- 030What is the difference between
any,unknown, andnever?Coming soonCoremedium - 040What are literal types, and what does
as constdo?Coming soonmedium - 050Why does TypeScript report an error on an object literal but not on a variable with the same shape?Coming soonmedium
- 060How do function types, overloads, and the
voidreturn type work?Coming soonmedium