Merge pull request #15588 from Microsoft/mapped-table
Symbol table for homomorphic mapped type: Don't needlessly create twice
This commit is contained in:
commit
750b574e49
|
@ -10002,7 +10002,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) {
|
||||
|
|
Loading…
Reference in a new issue