Organize code using TypeScript namespaces
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
- Knowledge of TypeScript
- Familiarity with JavaScript
- Installed software:
- Git
- Visual Studio Code
- Node.js
- TypeScript