Quick answer: What TypeScript skills do developer jobs expect, and how are they tested?
- Core types — primitives, objects, arrays, tuples, unions, literal types, interfaces vs type aliases.
- Narrowing — typeof, in, instanceof, discriminated unions and exhaustive checks.
- Generics — reusable functions and components with constraints.
- Practical — utility types, typing APIs, runtime validation, strict compiler settings.
- Where it's expected — React, Angular, Next.js, Node.js and full-stack roles.
Key takeaways
- TypeScript is a default expectation for modern JavaScript roles, not a bonus.
- Discriminated unions and narrowing are the most useful — and most tested — concepts.
- Types disappear at runtime; validating external data is still your job.
- Strict mode and no-any habits signal maturity in code reviews.
- Good types make AI-generated code safer to accept, because the compiler catches more mistakes.
Picture a code review on a React checkout. The API response is typed as any, a component reads response.data.items, and in production the API sometimes returns an error object instead. The page crashes for a few hundred customers. A TypeScript developer models the response as a discriminated union — status: "ok" with items, or status: "error" with a message — validates it at the boundary, and lets the compiler force every component to handle both. TypeScript interviews check whether you think this way: types as a design tool, not decorations.

Why TypeScript is now a job requirement
TypeScript adds static types to JavaScript, catching whole classes of bugs before code runs and making large codebases easier to change. Angular is written in it, most React and Next.js teams use it, and many Node.js back ends are built with it. Stack Overflow's 2025 survey shows TypeScript among the most-used languages by professional developers.5
TypeScript is what full-stack JavaScript roles increasingly assume — and those roles pay well: AmbitionBox shows typical full-stack developer pay of ₹9.2–10.2 lakh in India in October 2026.7
- TypeScript among most-used languages by professional developers (Stack Overflow, 2025)
- Top 10
- Typical full-stack developer pay in India (AmbitionBox, Oct 2026)
- ₹9.2–10.2 lakh
- Types left at runtime — validate external data
- 0
- The compiler setting serious teams turn on
- strict
How TypeScript is tested
| Format | Example | What they check |
|---|---|---|
| Concept questions | unknown vs any; type vs interface | Understanding of the type system |
| Typing exercise | "Type this function / API response" | Modelling data correctly |
| Code review | Find unsafe casts and anys | Judgement and strictness |
| Framework tasks | Type React props or an Express handler | Practical use |
| Generic puzzle | Write a typed groupBy or pick function | Generics and constraints |
Table: How TypeScript is tested in interviews (editorial summary)
What a fundamentals test covers

Modelling data
Interfaces, type aliases, unions, literal types, optional and readonly properties.1
Narrowing
typeof, in, instanceof, equality checks, discriminated unions and exhaustive switches with never.2
Generics
Generic functions and types with constraints and defaults.3
Utility types
Partial, Required, Pick, Omit, Record, ReturnType and friends.4
Strictness
strict mode, strictNullChecks, noImplicitAny, and avoiding any and unsafe as casts.
Boundaries
Typing API calls and validating untrusted data at runtime with schema libraries like Zod.6
Worked example: modelling request state
type Product = { id: string; name: string; price: number };
type ProductsState =
| { status: "loading" }
| { status: "error"; message: string }
| { status: "success"; items: Product[] };
function render(state: ProductsState): string {
switch (state.status) {
case "loading": return "Loading…";
case "error": return `Error: ${state.message}`;
case "success": return state.items.map((p) => p.name).join(", ");
default: {
const unreachable: never = state; // compiler error if a new status is added and not handled
return unreachable;
}
}
}
Explain: the status tag narrows the union, so each branch can only touch fields that exist; the never check makes the compiler flag any status you forget to handle. That's exactly the bug in the checkout story above, prevented at compile time.
TypeScript interview questions, with how to answer them
"unknown vs any?"
any turns off type checking; unknown accepts anything but forces you to narrow before use. Prefer unknown for untrusted data.
"Type alias vs interface?"
Interfaces describe object shapes and can be extended or merged; type aliases can also express unions, tuples and mapped types. Be consistent.
"What does strictNullChecks do?"
Makes null and undefined separate types, so the compiler forces you to handle missing values.
"Write a generic function that returns the first element."
function first<T>(arr: T[]): T | undefined { return arr[0]; } — the return type follows the input type.
"How do you type a React component's props?"
A props type or interface, children as React.ReactNode when needed, event handlers with React's event types, and optional props with defaults.
"What are utility types? Give an example."
Built-in generic types that transform others — Partial<User> for update payloads, Pick<User, 'id' | 'name'> for summaries.
"Why is 'as' risky?"
It tells the compiler to trust you without checking; wrong assertions hide bugs. Prefer narrowing or validation.
"How do you type an API response safely?"
Validate it at runtime with a schema, infer the TypeScript type from that schema, and handle error shapes explicitly.
How TypeScript adoption has changed
| Period | What happened | What employers expected |
|---|---|---|
| 2012–2015 | TypeScript released; Angular 2 adopts it | Early enterprise adopters |
| 2016–2019 | Strong tooling; React and Node teams start using it | TypeScript as a plus |
| 2020–2023 | Becomes default in many new projects | TypeScript as standard |
| 2024–2027 | Native type-stripping in runtimes; AI coding tools rely on types | Strict, well-modelled types as baseline |
Table: How TypeScript adoption has changed (editorial summary)
Practice tasks that build TypeScript skill
- Convert a project — Take a small JavaScript project and convert it to TypeScript with strict mode on and zero anys.
- Model state — Rewrite three pieces of UI state as discriminated unions with exhaustive checks.
- Type an API client — Wrap fetch with generics and runtime validation for two endpoints.
- Utility type drills — Recreate Partial, Pick and Record yourself with mapped types.
- Review generated code — Ask an AI assistant to type a module, then find its unsafe casts.
Could you pass the TypeScript Fundamentals Certification today?
Hiring managers test judgement with scenarios like this one. Answer it before you open the explanation — the test has 15 of them, 15 minutes, 70% to pass.
What does the ? in name?: string mean in an interface?
- The property is optional
- It's nullable only
- It's private
- It's a function
Show the answer
A. The property is optional — Optional properties may be omitted.
- 01Type system
- 02TypeScript in practice
- 03Modern TypeScript tooling
Free, no sign-up. Pass and you become a TypeScript Fundamentals, with a credential ID employers can verify. Every answer is explained either way.
Where TypeScript takes your career
| Role (India) | Typical pay | TypeScript's part |
|---|---|---|
| React developer | ₹5.7–6.3 lakh | Typed components and state |
| Angular developer | ₹6–6.6 lakh | Default language |
| Node.js developer | ₹6.9–7.6 lakh | Typed services |
| Full-stack developer | ₹9.2–10.2 lakh | Shared types across the stack |

Table: TypeScript-heavy roles and typical pay in India (AmbitionBox, October 2026; indicative)
A four-week plan

- Week 1: Core types — Objects, unions, literals, interfaces vs types; the TypeScript Handbook.
- Week 2: Narrowing and generics — Discriminated unions, never, generic functions.
- Week 3: Practice — Convert a project to strict TypeScript; type an API client with validation.
- Week 4: Prove it — Take the TypeScript Fundamentals Certification and fix weak areas.
Next: React Developer, Angular Developer and Node.js Development — and our guides to React and Node.js jobs.
How TypeScript shows up at work
- Typing API boundaries — generating or writing types for API responses and validating them at runtime.
- Refactoring safely — renaming a field and letting the compiler find every place that needs to change.
- Shared types — keeping front-end and back-end in sync with shared type packages in a monorepo.
- Code review — pushing back on any, unsafe casts and loose types in pull requests.
- Library types — writing declaration files or wrappers when a library ships weak types.
- Compiler settings — tightening strict options gradually in older codebases.
Questions to ask in your interview
- Is strict mode on across the codebase?
- How do you validate data from external APIs?
- Do front-end and back-end share types?
- How much legacy JavaScript is still being migrated?
- What's your policy on any and type assertions in reviews?
More questions interviewers ask
"What does keyof do?"
It produces a union of an object type's property names, useful for typed property access and mapped types.
"What is a type guard?"
A function returning a type predicate (value is Type) that narrows a type when it returns true.
"What's the difference between interface extension and intersection types?"
Both combine shapes; interfaces use extends and report conflicts clearly, intersections (&) combine any types but conflicting properties become never.
"How do you type a function that accepts several shapes?"
Use a union and narrow inside, or overloads when the return type depends on the input type.
"What is the satisfies operator for?"
It checks a value matches a type without widening it, so you keep precise literal types while getting validation.
"What are mapped types?"
Types built by transforming each property of another type, such as making all properties optional or readonly — the basis of utility types like Partial.
"How do you type an object with dynamic keys?"
With Record<string, T> or an index signature, narrowing to a union of known keys when you can for safety.
Mistakes that cost candidates
- any everywhere.
- Unsafe as casts to silence errors.
- Trusting API types without validation.
- Strict mode off.
- Over-engineered types no one can read.
How we know
Technical references are the TypeScript Handbook (narrowing, generics, utility types) and Zod's documentation; usage data from Stack Overflow's 2025 survey; pay from AmbitionBox (read October 2026). Test formats and the history table are editorial summaries. Science of Apps publishes the free certification linked here. Last reviewed October 2026.
Key terms, defined
- Type alias / interface — named descriptions of the shape of data.
- Union type — a value that can be one of several types.
- Narrowing — refining a union to a more specific type with checks.
- Generic — a type parameter that makes code reusable with type safety.
- Strict mode — compiler settings that catch more potential errors.
Frequently asked questions
Do I need TypeScript to get a developer job?
For most front-end, Node.js and full-stack roles in 2027, yes or strongly preferred. Angular uses TypeScript by default, most React and Next.js teams use it, and many Node.js back ends are written in it. Plain JavaScript knowledge is the base; TypeScript is the expected next layer.
Type alias or interface?
Both describe object shapes. Interfaces can be extended and merged, which suits public object contracts; type aliases can also describe unions, tuples and mapped types. Many teams use interfaces for objects and types for everything else, and either is fine if used consistently.
What are generics in TypeScript?
Generics let a function, class or type work with many types while keeping type safety — for example, a function that returns the first item of an array of any type, or a typed API response wrapper. Constraints (extends) limit which types are allowed.
What is a discriminated union?
A union of object types that share a literal 'tag' property, such as status: 'loading' | 'success' | 'error'. Checking the tag narrows the type, so TypeScript knows which fields exist. It's the safest way to model state with variants.
Does TypeScript validate data at runtime?
No. Types are erased when compiled, so data from APIs, forms or files must still be validated at runtime — commonly with schema libraries such as Zod — and then trusted by the type system.
What TypeScript questions are asked in interviews?
Type vs interface, unknown vs any, narrowing techniques, generics with constraints, utility types like Partial, Pick and Record, discriminated unions, typing React props and API responses, and what strict mode changes.
Sources
- TypeScript — Handbook
- TypeScript — Narrowing (Handbook)
- TypeScript — Generics (Handbook)
- TypeScript — Utility Types
- Stack Overflow — 2025 Developer Survey, Technology
- Zod — TypeScript-first schema validation
- AmbitionBox — Full Stack Developer salaries in India (updated 25 Oct 2026)
- Checked October 28, 2026. Figures that change — fees, salaries, prices — are reviewed every six months; if something is out of date, tell us.
Certifications to take next
- 20 AI skills for software engineers — copy-paste prompts for this job, one tap into ChatGPT or Claude
- TypeScript Fundamentals Certification — the free 15-minute test on the type system, practice and tooling
- JavaScript interview questions — the language TypeScript builds on
- How to get a React developer job — where TypeScript is used most
- Free skill test · 10 minJavaScript Fundamentals CertificationTests core modern JavaScript — variables and scope, types and equality, functions and closures, arrays and objects, promises and async/await, modules and the DOM.
- Free skill test · 15 minNext.js Development CertificationTests the Next.js App Router — Server and Client Components, layouts, data fetching and caching, Server Actions, rendering strategies, metadata for SEO and deployment.
- Free skill test · 15 minReact Developer AssessmentTests modern React — components and props, state and hooks, effects, rendering and keys, performance, React 19 Actions and Server Components.
- Free skill test · 15 minFront-End Development CertificationTests modern front-end engineering — component architecture, state, performance and Core Web Vitals, accessibility, responsive layouts, testing and build tooling.
- Free skill test · 15 minFull-Stack Web Development CertificationTests end-to-end web development — front end, APIs, databases, authentication, deployment, environment configuration and performance across the stack.
- Free skill test · 15 minBack-End Development CertificationTests server-side fundamentals — HTTP and REST, databases and transactions, authentication, caching, queues, scalability, logging and secure back-end design.
Career guides for related roles
- Career guidesHow to get a full-stack developer job in 2027: what "full stack" really means to employers, and how to prove itHow to get a full-stack developer job in 2027: front-end, back-end and deployment skills employers test, the interview loop, pay and a plan.
- Career guidesHow to get a front-end developer job in 2027: the skills, projects and interview rounds that decide itHow to get a front-end developer job in 2027: JavaScript, React, accessibility and performance skills employers test, the interview loop, pay and a plan.
- Career guidesHow to get a Node.js developer job in 2027: the event loop, async patterns and the back-end skills employers testHow to get a Node.js developer job in 2027: the event loop, async patterns, APIs, security and testing skills employers test, pay and a plan.
- Career guidesNext.js developer jobs in 2027: the App Router, Server Components and caching skills employers testNext.js developer jobs in 2027: App Router, Server and Client Components, Server Actions, caching and SEO skills employers test, interview questions and pay.
- Career guidesSoftware engineer interview preparation in 2027: every round, what it tests and a 10-week plan to get offersSoftware engineer interview preparation for 2027: online assessments, coding, system design and behavioural rounds, how to answer, a plan.
- Career guidesAI-assisted software development skills employers want in 2027: verification, specs and working with coding agentsAI-assisted development skills employers want in 2027: coding assistants and agents, verification, specs, security and measuring impact.
Get the ideas, not the noise.
Sign up with Google and we’ll send you short UX psychology tips by email — why people tap, stall and leave, and what to do about it. Unsubscribe anytime. Prefer something to keep? Get the free Laws of UX guide as a PDF.
You've read the playbook. Now prove it.
Take the free TypeScript Fundamentals Certification and earn TypeScript Fundamentals (SOA-TS). Free, test-based certifications graded on our server. Pass and you get a founder-signed certificate with a credential ID and QR code employers can verify.






