Type safety that accelerates development rather than slowing it down
Module 1
Type System Fundamentals
- TypeScript compiler: tsconfig.json — strict mode, target, module, paths
- Primitive types, arrays, tuples, enums
- Object types: interfaces vs type aliases — when to use which
- Union and intersection types
- Literal types: string, number, and boolean literals as types
- Type narrowing: typeof, instanceof, in, discriminated unions
- Functions: typed parameters, return types, overloads
- Generics: generic functions, interfaces, constraints, default type parameters
- Utility types: Partial, Required, Pick, Omit, Record, ReturnType, Awaited
- Template literal types: building string union types from combinations
Module 2
Advanced Types & Real-World Patterns
- Conditional types: T extends U ? X : Y
- Mapped types: transforming object types systematically
- infer keyword: extracting types from other types
- Declaration files (.d.ts): typing JavaScript libraries
- Module augmentation: extending third-party types
- Strict null checks: avoiding the billion-dollar mistake properly
- Type guards: custom type predicates with is
- Branded types: preventing mixing semantically different values of the same base type
- TypeScript with React: typing props, hooks, events, and context
- TypeScript with Node.js: typing Express, Fastify middleware and handlers
- Common TypeScript anti-patterns: any abuse, assertion overuse, over-typing
What your team walks away with
JavaScript developers who can leverage TypeScript's type system to catch real bugs at compile time, write self-documenting APIs, and navigate large codebases confidently.
- Configure TypeScript strict mode and understand the implications of each compiler option
- Write generic functions and utility types that work across use cases
- Apply discriminated unions and type narrowing to eliminate runtime type errors
- Type React components, hooks, and events without excessive annotations
Book the TypeScript training
A focused one-day course. Works well as a prerequisite before the Angular, React, or Next.js training.
Get in touch