Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Microsoft

Build JavaScript applications using TypeScript

Microsoft via Microsoft Learn

Overview

  • Module 1: This module introduces you to the TypeScript language and shows you how to set up a TypeScript development environment.
  • In this module, you'll:

    • Learn how TypeScript is an improvement over JavaScript for web development.
    • Select a TypeScript editor.
    • Install TypeScript.
    • Set up a TypeScript project in Visual Studio Code.
  • Module 2: Learn about the available types and how to associate them with variables.
  • In this module, you will learn how to:

    • Explain the advantages of declaring typed variables in TypeScript.
    • Declare variables using primitive types.
    • Declare variables using object types.
    • Declare variables using union and intersection types.
  • Module 3: Learn how to use interfaces to define object types.
  • In this module, you will learn how to:

    • Explain the reasons for using an interface in TypeScript.
    • Declare and instantiate an interface.
    • Extend an interface.
    • Declare an interface with custom array types.
  • Module 4: Learn how to develop typed functions by using TypeScript.
  • In this module, you will learn how to:

    • Explain the benefits of using types in functions.
    • Write functions that have required, optional, default, and rest parameters.
    • Define function types using type aliases or interfaces.
  • Module 5: Learn how to declare and instantiate classes in TypeScript.
  • In this module, you will:

    • Explain how you can use TypeScript classes describe the shape of objects.
    • Declare a class using TypeScript.
    • Instantiate a class using TypeScript.
    • Apply access modifiers to a class.
    • Define static properties in a class.
    • Declare a class that extends another class.
    • Declare an interface to ensure class shape.
    • Determine when to use an interface or a class to define the structure of an object.
  • Module 6: Learn how to define generics in TypeScript.
  • In this module, you will:

    • Identify use cases for generics.
    • Define a generic function.
    • Declare a generic interface.
    • Declare a generic class.
    • Implement generic constraints.
  • Module 7: Learn how to access external libraries from TypeScript.
  • You will learn how to:

    • Organize code using modules.
    • Import an external type library.
  • Module 8: Learn how to use TypeScript namespaces' to organize code.
  • In this module, you will learn how to:

    • Explain the purpose of namespaces.
    • Implement single-file namespaces.
    • Implement multi-file namespaces.
    • Explain the design considerations for using namespaces and modules.

Syllabus

  • Module 1: Get started with TypeScript
    • Introduction
    • Overview of TypeScript
    • Exercise - Select a TypeScript editor
    • Exercise - Install the TypeScript compiler
    • Compile a TypeScript file
    • Exercise - Set up a TypeScript project
    • Knowledge check
    • Summary
  • Module 2: Declare variable types in TypeScript
    • Introduction
    • Overview of types in TypeScript
    • Primitive types in TypeScript
    • Exercise - enums
    • Any and unknown types in TypeScript
    • Union and intersection types in TypeScript
    • Collection types in TypeScript
    • Lab - Use types in TypeScript
    • Knowledge check
    • Summary
  • Module 3: Implement interfaces in TypeScript
    • Introduction
    • Overview of interfaces in TypeScript
    • Exercise - Declare and instantiate an interface in TypeScript
    • Exercise - Extend an interface in TypeScript
    • Other ways to use interfaces in Typescript
    • Lab - Use interfaces in TypeScript
    • Knowledge check
    • Summary
  • Module 4: Develop typed functions by using TypeScript
    • Introduction
    • Create functions in TypeScript
    • Exercise - Create functions
    • Fun with parameters
    • Exercise - Fun with parameters
    • Exercise - Define function types
    • Lab - Use functions in TypeScript
    • Knowledge check
    • Summary and resources
  • Module 5: Declare and instantiate classes in TypeScript
    • Introduction
    • Introduction to classes in TypeScript
    • Exercise- Create a class
    • Exercise - Instantiate a class
    • Access modifiers
    • Exercise - Apply access modifiers to a class
    • Define static properties
    • Extend a class using inheritance
    • Exercise - Extend a class
    • Exercise - Declare an interface to ensure class shape
    • Design considerations
    • Lab - Convert three TypeScript functions to a class definition
    • Knowledge check
    • Summary
  • Module 6: Define generics in TypeScript
    • Introduction
    • Introduction to generics
    • Use the methods and properties of a generic type
    • Exercise - Implement generics with interfaces and classes
    • Implement generics with custom types and classes
    • Lab - Declare a class by using a generic
    • Knowledge check
    • Summary
  • Module 7: Access external libraries from TypeScript
    • Introduction
    • Organize code with modules
    • Exercise - Export and import module components
    • Exercise - Compile modules
    • Exercise - Access external type libraries
    • Lab - Export and import module components
    • Knowledge check
    • Summary
  • Module 8: Organize code using TypeScript namespaces
    • Introduction
    • Introduction to TypeScript namespaces
    • Exercise - Organize code by using single file namespaces
    • Organize code by using multi-file namespaces
    • Design considerations
    • Lab - Organize code with namespaces
    • Knowledge check
    • Summary

Reviews

Start your review of Build JavaScript applications using TypeScript

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.