Back to Courses

TypeScript

Add type safety to your JavaScript with TypeScript. Learn interfaces, generics, and advanced types.

2 Weeks Duration
6 Modules

Course Curriculum

1

TypeScript Basics

  • Introduction to TypeScript
  • TypeScript vs JavaScript
  • Setting Up TypeScript Environment
  • Basic Types (string, number, boolean)
  • Type Inference
  • Type Annotations
2

Advanced Types

  • Union and Intersection Types
  • Literal Types
  • Type Aliases
  • Nullable Types
  • Type Assertions
  • Type Guards
3

Interfaces

  • Defining Interfaces
  • Optional and Readonly Properties
  • Extending Interfaces
  • Interface vs Type Alias
  • Implementing Interfaces in Classes
4

Generics

  • Introduction to Generics
  • Generic Functions
  • Generic Interfaces
  • Generic Classes
  • Generic Constraints
  • Utility Types (Partial, Required, Pick, Omit)
5

Classes in TypeScript

  • Class Syntax and Properties
  • Access Modifiers (public, private, protected)
  • Abstract Classes
  • Static Members
  • Decorators Introduction
6

TypeScript with React/Angular

  • TypeScript in React Projects
  • Typing Props and State
  • TypeScript in Angular Projects
  • Typing Services and Components
  • Best Practices and Patterns