I am facing a problem where it seems impossible to do this, and I need help with finding a solution
enum Vehicles {
BMW='BMW',
TOYOTA='Toyota'
}
class MyVehicles {
public vehicleName: typeof Vehicles =Vehicles;
}
const vehicle1 = new MyVehicles();
vehicle1.vehicleName = Vehicles.BMW;