We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
checkMode
1 parent e872af5 commit 6b7d580Copy full SHA for 6b7d580
src/compiler/checker.ts
@@ -11583,7 +11583,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
11583
// to preserve this type. In fact, we need to _prefer_ that type, but it won't
11584
// be assigned until contextual typing is complete, so we need to defer in
11585
// cases where contextual typing may take place.
11586
- if (!links.type && !isParameterOfContextSensitiveSignature(symbol) && !(checkMode !== CheckMode.Normal && checkMode)) {
+ if (!links.type && !isParameterOfContextSensitiveSignature(symbol) && !checkMode) {
11587
links.type = type;
11588
}
11589
return type;
0 commit comments