Modules - TypeScript - JavaScript's Superset
☰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{
}