Skip to content
Preptima

TypeScript interview questions

Structural typing, generics, narrowing, utility types, and typing component contracts.

3 questions in Frontend Engineering.

medium2

hard1

hardConcept

Where does TypeScript stop protecting you, and what do you do at those points?

TypeScript stops protecting you at runtime boundaries such as JSON, HTTP requests, local storage and third-party packages. Validate untrusted input at the boundary, then let static types carry the trusted shape inside the app. It also connects type soundness to the point an interviewer is testing.

4 minmid, senior, staff