Organize code using TypeScript namespaces

Intermediate
Student
Developer
Azure

TypeScript provides two ways to organize code - namespaces and modules. This module explains how to organize TypeScript code using namespaces.

Learning objectives

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.

Prerequisites