Namespaces are paradigm of organizing code so that variables, functions, interfaces, or classes are grouped together within a local scope. Namespaces reduce the amount of code in the global scope, making it less bloated. Modules offer some additional benefits like strong code isolation, strong support for bundling, re-exporting of components, and renaming of components.

5m read timeFrom blog.logrocket.com
Post cover image
Table of contents
IntroductionPrerequisitesWhat are namespaces?Why do we need namespaces?Design considerations using namespacesWe made a custom demo for . No really. Click here to check it out .Exploring namespaces in TypeScriptConclusionLogRocket : Full visibility into your web apps

Sort: