Skip to content

Commit

Permalink
reuse the added mappedType variable in one more place
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Mar 15, 2023
1 parent dab0d38 commit 681f8bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13177,7 +13177,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
const mappedType = (type.target as MappedType) || type;
const nameType = getNameTypeFromMappedType(mappedType);
const shouldLinkPropDeclarations = !nameType || isFilteringMappedType(mappedType);
const templateType = getTemplateTypeFromMappedType(type.target as MappedType || type);
const templateType = getTemplateTypeFromMappedType(mappedType);
const modifiersType = getApparentType(getModifiersTypeFromMappedType(type)); // The 'T' in 'keyof T'
const templateModifiers = getMappedTypeModifiers(type);
const include = keyofStringsOnly ? TypeFlags.StringLiteral : TypeFlags.StringOrNumberLiteralOrUnique;
Expand Down

0 comments on commit 681f8bc

Please sign in to comment.