What do the public, private, and protected access modifiers control on a class member?
public (the default) makes a member accessible from anywhere; private restricts access to only within the declaring class itself; protected allows…
28 key TypeScript questions with one-line answers, covering 14 topics, on a printable sheet. Read it the night before, or pin it next to your screen.
public (the default) makes a member accessible from anywhere; private restricts access to only within the declaring class itself; protected allows…
The 'private' keyword is a TypeScript-only, compile-time restriction — it's erased at compile time and the field is still a regular accessible…
A conditional type has the form `T extends U ? X : Y` — evaluated at the type level, it resolves to X if T is assignable to U, and Y otherwise…
Combine a conditional type with the 'infer' keyword to capture and name the array's element type only when T actually matches the array shape.
The full sheet has 28 questions. Sign in (free) to open it and save it as a PDF.