TypeScript tutorialLesson 32Free preview
TS Namespaces
This lesson is part of TypeScript · All levels
Summary
Namespace groups names so they don't clash with other modules in a project. Namespace members are exported with the export keyword and then accessed through the dot. For modern projects, ES modules are more recommended because they are standard-based and easily shared among projects.
Key points
- Namespace group names and types
- Members exported by export
- ES modules are now more recommended than namespaces
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.