TypeScript namespace

A TypeScript block, namespace Name { }, that groups declarations under one name and can be merged across files.

In more detail

Modern code uses modules instead, but namespaces are still how some global types are organised, such as NodeJS.ProcessEnv. Declaring namespace Framework twice merges the two, like interfaces.

Related terms

Taught in

References