Narrowing TypeScript Unions without the `in` operator

When using a Union Type such as this: