I\'m developing a Typescript function which needs to iterate over an array of type Employee[] | Guest[]. The problem is that TypeScript is emitting the error <
Employee[] | Guest[]