Set '.declarations' on a property of a homomorphic mapped type

This commit is contained in:
Andy Hanson
2017-05-24 08:14:52 -07:00
parent b4ee6b19aa
commit b0de80f07e
2 changed files with 31 additions and 0 deletions

View File

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