Dimitar Mazhlekov
Dimitar Mazhlekov

Reputation: 996

TypeScript 1.5.3 mixing external with internal modules

Does anybody know how to mix external typescript modules with internal ones. I tried it with using browserify but when i import some external module i cannot longer use internal modules(namespace or module) ?

Upvotes: 0

Views: 115

Answers (1)

Fenton
Fenton

Reputation: 250842

My recommendation is, don't mix internal and external modules. If you are using external modules commit yourself to that pattern and act as if internal modules simply don't exist.

The TypeScript team (via Ryan Cavanaugh) have a similar recommendation.

So just ditch the internal modules / namespaces and get on board fully with the external module pattern, which is better anyhow.

Upvotes: 2

Related Questions