0

Completed

0%

Progress

0

Starred

01

What is TypeScript and why is it used?

beginner#TypeScript Basics
02

What are the key benefits of using TypeScript over JavaScript?

beginner#TypeScript Basics
03

What is the difference between TypeScript and JavaScript?

beginner#TypeScript Basics
04

What are type annotations in TypeScript?

beginner#Types
05

What are primitive types in TypeScript?

beginner#Types
06

How do you define arrays and tuples in TypeScript?

beginner#Types
07

What are enums in TypeScript and how do they work?

beginner#Types
08

What is the 'any' type in TypeScript and when should you use it?

beginner#Types
09

What is the 'unknown' type and how does it differ from 'any'?

beginner#Types
10

What are the 'void' and 'never' types in TypeScript?

beginner#Types
11

How does TypeScript treat null and undefined?

beginner#Types
12

How does type inference work in TypeScript?

beginner#Type Inference
13

What are union types and literal types in TypeScript?

beginner#Union & Literal Types
14

How do you type functions, optional, default, and rest parameters in TypeScript?

beginner#Functions
15

What is the difference between interface and type alias in TypeScript?

beginner#Interfaces & Types
16

How do you type objects in TypeScript? Explain index signatures and excess property checks.

beginner#Objects
17

What are basic generics in TypeScript? How do you write a generic identity function?

beginner#Generics
18

How do you define classes with access modifiers in TypeScript?

beginner#Classes
19

What are type assertions in TypeScript? Explain `as`, `as const`, and the `as unknown as` pattern.

beginner#Type Assertions
20

What are the `keyof` and `typeof` operators in TypeScript?

beginner#Keyof & Typeof
21

What are the essential tsconfig.json compiler options? Explain target, module, strict, and lib.

beginner#TsConfig
22

How do you add constraints to generic types using `extends`?

beginner#Basic Generics
23

How do you use `readonly` and optional properties (`?`) in TypeScript interfaces?

beginner#Readonly & Optional
24

What are advanced generic patterns like generic constraints with `keyof`, default type parameters, and generic parameter default values?

intermediate#Advanced Generics
25

Explain the built-in utility types: Partial, Required, Pick, Omit, Record, Exclude, Extract, ReturnType, and Parameters.

intermediate#Utility Types
26

What are mapped types in TypeScript and how do you create custom ones?

intermediate#Mapped Types
27

How do conditional types work in TypeScript? Explain with examples and the `infer` keyword.

intermediate#Conditional Types
28

What are type guards and type narrowing techniques in TypeScript?

intermediate#Type Guards & Narrowing
29

What are discriminated unions (tagged unions) and how do they enable exhaustive type checking?

intermediate#Discriminated Unions
30

What are intersection types and how do they differ from union types and interfaces?

intermediate#Intersection Types
31

What is declaration merging in TypeScript and how can you use it to extend existing types?

intermediate#Declaration Merging
32

How does function overloading work in TypeScript?

intermediate#Function Overloading
33

How do ES modules and namespace modules work in TypeScript?

intermediate#Modules
34

What are decorators in TypeScript and how are they used?

intermediate#Decorators
35

What are abstract classes and methods in TypeScript?

intermediate#Abstract Classes
36

What are indexed access types and how do you use them to access nested property types?

intermediate#Indexed Access Types
37

How do you type async functions and Promises in TypeScript?

intermediate#Async & Promise Typing
38

How do you type React components, props, and hooks (useState, useEffect, useRef) with TypeScript?

intermediate#React with TypeScript
39

How do you type Vue components, props, emits, and refs with TypeScript?

intermediate#Vue with TypeScript
40

How do you use TypeScript effectively in Nuxt 3? (auto-imports, pages, composables, runtimeConfig)

intermediate#TypeScript & Nuxt
41

What are best practices for error handling and typing errors in TypeScript?

intermediate#Error Handling
43

What are other important compiler options like `noUnusedLocals`, `noUnusedParameters`, `noImplicitReturns`, and `noFallthroughCasesInSwitch`?

intermediate#Compiler Options
44

What are the advanced differences between `interface` and `type` in TypeScript? Compare declaration merging, `extends`, `implements`, and performance.

intermediate#Interface vs Type
45

What is the difference between `extends` and `implements` in TypeScript classes and interfaces?

intermediate#Extends vs Implements
46

How do you type API responses in TypeScript with runtime validation (Zod, io-ts) and type predicates?

intermediate#API Response Typing
47

How does the `infer` keyword work in advanced conditional types? Can you give examples of extracting return types, promise unwrapping, and function parameters?

advanced#Advanced Infer
48

How do you define and use recursive types in TypeScript? Provide examples with JSON, tree structures, and deeply nested objects.

advanced#Recursive Types
49

What are template literal types and how can they be used for string manipulation, type-safe string concatenation, and pattern matching?

advanced#Template Literal Types
50

What are variadic tuple types and how do they enable higher-order functions and type-safe function composition?

advanced#Variadic Tuples
51

What are branded (nominal) types in TypeScript and how do they simulate nominal typing to avoid primitive obsession?

advanced#Branded Types
52

How does module augmentation work? Explain with examples of extending third-party library types and global augmentations.

advanced#Module Augmentation
53

Explain structural vs nominal typing. How does TypeScript's structural typing affect type compatibility, and what are its limitations?

advanced#Structural Typing
54

Explain variance: covariance, contravariance, and bivariance in TypeScript function type compatibility.

advanced#Type Compatibility
55

How do you optimize TypeScript compilation performance for large projects and monorepos?

advanced#Performance Optimization
56

How do you integrate Zod with TypeScript for runtime validation and type-safe API contracts?

advanced#Zod Integration
57

What are distributed conditional types? How do they work with unions and how can you prevent distribution?

advanced#Distributed Conditional Types
58

How do you create advanced mapped types like DeepReadonly, DeepPartial, and PathValue?

advanced#Advanced Mapped Types
59

How do you write and maintain declaration files (.d.ts) for JavaScript libraries? Explain ambient declarations, export patterns, and triple-slash directives.

advanced#Declaration Files
60

Explain the TypeScript compilation flow: parsing, binding, type checking, and emitting. What are the key data structures like Symbol, Type, and Node?

advanced#Compiler Internals
61

How do you build custom utility types like `PickByValueType`, `OmitByType`, `Merge`, `PartialByKeys`, and `RequiredByKeys`?

advanced#Custom Utility Types
62

How do you design a type-safe API architecture using TypeScript, including shared types, contract validation, and automatic inference?

advanced#Type-Safe API Architecture
63

What are monorepo typing strategies? How do project references, path mapping, and composite tsconfig work together?

advanced#Monorepo Typing
64

How do you type advanced React patterns like higher-order components (HOC), generic components, and polymorphic components with TypeScript?

advanced#Advanced React Typing
65

How do you type advanced Vue 3 patterns: generic components, composables, provide/inject, and slots with TypeScript?

advanced#Advanced Vue Typing
66

How do you leverage TypeScript in Nuxt 3 for typing auto-imports, pages, middleware, and modules?

advanced#Advanced Nuxt Typing
67

How do you implement type-safe state management with Zustand (or Redux Toolkit) using TypeScript, including middleware and slices?

advanced#Type-Safe State Management
68

How do you structure a large-scale TypeScript application with layered architecture (domain, application, infrastructure, presentation)?

advanced#Enterprise TypeScript Architecture
69

What are scalable typing patterns for large codebases? Discuss opaque types, fluent interfaces, builder pattern, and smart constructors.

advanced#Scalable Typing Patterns
70

How do you build complex type guards for union discrimination, array element validation, and object shape checks?

advanced#Advanced Type Guards
71

How do you use the TypeScript Compiler API to manipulate AST, create custom transformations, or build a code generator?

advanced#TypeScript & AST