Imagine I have the following setup:
List.ts:
module Helper {
export class List{
}
}
Parser.ts:
module Helper {
export class Parser {
}
}
Now, when working with another module, I find myself constantly needing to use "Helper.List" every time. Is there a way to simplify this syntax to just be able to say "List" instead of "Helper.List"?
import Helper;
module Data {
export interface DataRepository {
getRange() : List<string>;
}
}
So that whenever I need to reference List
, I can simply type List
without having to specify Helper
? I am aware of the option to use:
import List = Helper.List;
But is it possible to achieve something like this:
import * from Helper;
Is this sort of shorthand syntax feasible?