File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -577,9 +577,10 @@ namespace ts {
577
577
578
578
const enum CheckMode {
579
579
Normal = 0, // Normal type checking
580
- SkipContextSensitive = 1, // Skip context sensitive function expressions
581
- Inferential = 2, // Inferential typing
582
- Contextual = 3, // Normal type checking informed by a contextual type, therefore not cacheable
580
+ JustType = 1, // Just return a type and don't report errors
581
+ SkipContextSensitive = 2, // Skip context sensitive function expressions
582
+ Inferential = 3, // Inferential typing
583
+ Contextual = 4, // Normal type checking informed by a contextual type, therefore not cacheable
583
584
}
584
585
585
586
const enum CallbackCheck {
@@ -19697,7 +19698,7 @@ namespace ts {
19697
19698
// Otherwise simply call checkExpression. Ideally, the entire family of checkXXX functions
19698
19699
// should have a parameter that indicates whether full error checking is required such that
19699
19700
// we can perform the optimizations locally.
19700
- return cache ? checkExpressionCached(node) : checkExpression(node);
19701
+ return cache ? checkExpressionCached(node) : checkExpression(node, CheckMode.JustType );
19701
19702
}
19702
19703
19703
19704
/**
You can’t perform that action at this time.
0 commit comments