typescript switch string enum