mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Symbol table for homomorphic mapped type: Don't needlessly create twice
This commit is contained in:
1 parent
d9b459bc3d
commit
398d3aaf6c
1 file changed
+1
-1
@@ -10022,7 +10022,7 @@ namespace ts {
|
||||
const templateType = getTemplateTypeFromMappedType(target);
|
||||
const readonlyMask = target.declaration.readonlyToken ? false : true;
|
||||
const optionalMask = target.declaration.questionToken ? 0 : SymbolFlags.Optional;
|
||||
const members = createSymbolTable(properties);
|
||||
const members = createMap<Symbol>();
|
||||
for (const prop of properties) {
|
||||
const inferredPropType = inferTargetType(getTypeOfSymbol(prop));
|
||||
if (!inferredPropType) {
|
||||
|
||||
Reference in new issue
Block a user