Modules - TypeScript - JavaScript's Superset

Rumman Ansari   Software Engineer   0000-00-00 00:00:00   62  Share
Subject Syllabus DetailsSubject Details
☰ TContent
☰Fullscreen

Table of Content:

Modules - TypeScript - JavaScript's Superset

Typescript module is all about maintenance of the code as it becomes more complex by using classes and interfaces. It can further be classified as:

  • Internal modules
  • External modules

Logical grouping of classes, interfaces and functions into one unit is named as namespace.

Modules

Module and namespace is differentiated below:

module Cube{
   class property{
                    }
        }

whereas namespace as:

namespace Cube{
}