diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 8ee0a4c051996..1431f877d8e32 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -10383,7 +10383,7 @@ namespace ts { // We attempt to resolve the conditional type only when the check and extends types are non-generic if (!checkTypeInstantiable && !maybeTypeOfKind(inferredExtendsType, TypeFlags.Instantiable | TypeFlags.GenericMappedType)) { if (inferredExtendsType.flags & TypeFlags.AnyOrUnknown) { - return trueType; + return instantiateType(root.trueType, combinedMapper || mapper); } // Return union of trueType and falseType for 'any' since it matches anything if (checkType.flags & TypeFlags.Any) {