diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 3680d49fcff..1daa67bcbe8 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -5008,7 +5008,7 @@ namespace ts { // This *should* be every type other than null, undefined, void, and never Narrowable = Any | Unknown | StructuredOrInstantiable | StringLike | NumberLike | BigIntLike | BooleanLike | ESSymbol | UniqueESSymbol | NonPrimitive, /* @internal */ - NotPrimitiveUnion = Any | Unknown | Enum | Void | Never | StructuredOrInstantiable, + NotPrimitiveUnion = Any | Unknown | Enum | Void | Never | Object | Intersection | Instantiable, // The following flags are aggregated during union and intersection type construction /* @internal */ IncludesMask = Any | Unknown | Primitive | Never | Object | Union | Intersection | NonPrimitive | TemplateLiteral,