We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e568892 commit eb87badCopy full SHA for eb87bad
1 file changed
src/compiler/checker.ts
@@ -2467,9 +2467,7 @@ namespace ts {
2467
}
2468
2469
function isUnionContaining(type: Type, kinds: TypeFlags) {
2470
- return type
2471
- && (type.flags & TypeFlags.Union)
2472
- && someConstituentTypeHasKind(type, kinds);
+ return type && (type.flags & TypeFlags.Union) && someConstituentTypeHasKind(type, kinds);
2473
2474
2475
// Return the type of a binding element parent. We check SymbolLinks first to see if a type has been
0 commit comments