Here's some code that I've been working on:
enum AnimalId {
Dog = 2,
Cat = 3
}
const animalIds: AnimalId[] = [AnimalId.Dog, 4];
I'm curious as to why TypeScript isn't flagging the assignment of 4 to type AnimalId[]. Shouldn't it be showing an error in this case?