I have a JSON string that looks like the following.
{
"type": "A",
"desc": "AAA"
}
or
{
"type": "B",
"desc" "BBB"
}
etc.
How can I utilize an enum in TypeScript to parse this data? While I am able to do it for the `type` field, how should I handle the `desc` field?
enum Type {
A = "A",
B = "B"
}