Help the world stop coronavirus! Stay home!

Prev Next

Angular / Typescript interview questions

What is namespace in Typescript?

A namespace is a way to logically group related classes or interfaces in a wrapper.

Namespaces are simply named JavaScript objects in the global namespace. This makes namespaces a very simple construct to use.

export namespace Shapes {
    export class Triangle { /* ... */ }
    export class Square { /* ... */ }
}

Namespace is also known as internal modules.

❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Show more question and Answers...

Node js

Comments & Discussions