I am working on an application that involves using multiple enums
enum HondaModels {
Accord = 'Accord',
...
}
enum ToytaModels {
Camry = 'Camry',
...
}
Within my code, I am validating whether a car model belongs to either Honda or Toyota.
I am interested in defining a type that represents either HondaModels or ToyotaModels
When attempting this, I encounter an error
type modelTypes: HondaModels || ToyotaModels
Is there a more effective method for creating a custom type that encompasses multiple enums?