typescript compare enum to string