I'd like to create a function that accepts any Enum. For example
function AcceptOne(one: Enumerator) {}
With an enum
enum Animal {
Dog = 'Dog'
}
And then call
AcceptOne(Animal.Dog);
But I get the error
Argument of type 'Animal' is not assignable to parameter of type 'Enumerator'