I have multiple enums in my app
enum HondaModels {
Accord = 'Accord',
...
}
enum ToytaModels {
Camry = 'Camry',
...
}
In my code I check if a car model passed to me is a Honda or Toyota.
I would like to declare a type that is either HondaModels or ToyotaModels
If i try this, I get an error
type modelTypes: HondaModels || ToyotaModels
is there a better approach to having a custom type that is one of multiple enums?