I get the error:
TS2358: The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter.
When compiling the following code:
const animal: Tiger | Monkey | Goat = fetchAnimal();
if (!animal instanceof Tiger && !animal instanceof Monkey) {
alert('It is safe to touch the animal');
}