I have an enumeration which I want to use in several places. Let's say enum like this:
export enum MyEnum {
MY_VALUE,
MY_SECOND_VALUE
}
Every time I use it I have to specify enum name in front of the value, eg:
MyEnum.MY_VALUE
Q: Is it possible to import the enum in the way that I wont need to specify the name?
I'd like to use the value directly:
MY_VALUE
In java world it is called static import. But I haven't found anithing like that TypeScript.
My TypeScript version is 2.5.3.