This is my enum list class in C#
namespace MyProject.MyName
{
public enum MyNameList
{
[Description("NameOne")]
NameOne,
[Description("NameTwo")]
NameTwo,
[Description("NameThree")]
NameThree
}
}
And this is how I use this enum list inside C# .cshtml razor and javascript
@using MyProject.MyName
....
....
<script>
..
..
if (result.data == @((int)MyNameList.NameOne))
..
..
</script>
Now I have to write this (javascript) code in Typescript and how can I use my Enum list MyNameList inside Typescript ??