Merge pull request #16059 from Microsoft/mappedTypeDeclarations

Set '.declarations' on a property of a homomorphic mapped type
This commit is contained in:
Andy
2017-05-25 09:43:36 -07:00
committed by GitHub
9 changed files with 70 additions and 42 deletions

View File

@@ -5692,6 +5692,7 @@ namespace ts {
prop.type = propType;
if (propertySymbol) {
prop.syntheticOrigin = propertySymbol;
prop.declarations = propertySymbol.declarations;
}
members.set(propName, prop);
}