Skip to content

Commit e7e9125

Browse files
committed
fmt
1 parent cca600f commit e7e9125

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26467,7 +26467,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
2646726467
// Intra-expression inference infers from collected sites into their contextual types.
2646826468
// The scope node is the object literal expression being source of this whole reverse mapped type
2646926469
// and its regular contextual type is "replaced" here (it overshadows earlier entries on the stack).
26470-
// This tricks the algorithm to avoid contextual types for expressions *inside it* being computed of the mapped type substitution.
26470+
// This tricks the algorithm to avoid contextual types for expressions *inside it* being computed of the mapped type substitution.
2647126471
// So `T[K]` stays as `T[K]` (instead of being instantiated as `T["prop"]`)
2647226472
// and thus it stays being a viable inference target for inferring the type of this reverse mapped type property.
2647326473
pushContextualType(scopeNode as Expression, getTypeAliasInstantiation(recordSymbol, [stringNumberSymbolType, templateType]), /*isCache*/ false);

0 commit comments

Comments
 (0)