Skip to content

Commit e388a26

Browse files
committed
Fix issue with unions not being marked primitive-only
1 parent 99355c5 commit e388a26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/compiler/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5008,7 +5008,7 @@ namespace ts {
50085008
// This *should* be every type other than null, undefined, void, and never
50095009
Narrowable = Any | Unknown | StructuredOrInstantiable | StringLike | NumberLike | BigIntLike | BooleanLike | ESSymbol | UniqueESSymbol | NonPrimitive,
50105010
/* @internal */
5011-
NotPrimitiveUnion = Any | Unknown | Enum | Void | Never | StructuredOrInstantiable,
5011+
NotPrimitiveUnion = Any | Unknown | Enum | Void | Never | Object | Intersection | Instantiable,
50125012
// The following flags are aggregated during union and intersection type construction
50135013
/* @internal */
50145014
IncludesMask = Any | Unknown | Primitive | Never | Object | Union | Intersection | NonPrimitive | TemplateLiteral,

0 commit comments

Comments
 (0)