this might be a basic question but maybe my knowledge of c# is misleading me. I'm currently trying to reference a custom type in Typescript and it only allows it when I actually provide the string value instead of the type reference. This is what I have:
export type MyCustomeType=
'text1' |
'text2' |
'text3';
export class MyCustomeTypeUtils {}
In my component I have declared variables of my custom type:
var1 : MyCustomeType;
The only way I get var1 to have a value is if I do:
var1 = 'text1'
If I do
var1 = MyCustomeType.0
or
var1 = MyCustomeType.text1
it throws an error that it couldn't find the name MyCustomeType. Any help is greatly appreciated.