We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80e5f2f commit 6d6b19fCopy full SHA for 6d6b19f
src/compiler/checker.ts
@@ -4871,7 +4871,7 @@ namespace ts {
4871
*/
4872
function getApparentType(type: Type): Type {
4873
const t = type.flags & TypeFlags.TypeVariable ? getBaseConstraintOfType(<TypeVariable>type) || emptyObjectType : type;
4874
- return t.flags & TypeFlags.Intersection ? getApparentTypeOfIntersectionType(<IntersectionType>type) :
+ return t.flags & TypeFlags.Intersection ? getApparentTypeOfIntersectionType(<IntersectionType>t) :
4875
t.flags & TypeFlags.StringLike ? globalStringType :
4876
t.flags & TypeFlags.NumberLike ? globalNumberType :
4877
t.flags & TypeFlags.BooleanLike ? globalBooleanType :
0 commit comments