Lets say we have the following 2 external modules in TypeScript:
export module My.Services.Common
{
export class Helper
{
//...
}
}
and
export module My.Services
{
export class Connection
{
//...
}
}
Now in my app.ts I would like to use both Connection and Helper classes. What I want to achieve is similar to the following code in C#:
using My.Services;
using My.Services.Common;
Or at least just
using My.Services;
But it looks like I cant work at the same time with both Helper and Connection. If I write:
import {My} from './services/common/Helper';
import {My} from './services/Connection;
Leads to error "duplicate identifier 'My'". That is logical though. So my question is how can I consume different classes from the same (or nested) modules?