Fix lint error? (#37305)

This commit is contained in:
Andrew Branch
2020-03-09 14:46:03 -07:00
committed by GitHub
parent 712967b278
commit 8d6f004aca
+1 -1
View File
@@ -3235,7 +3235,7 @@ namespace ts {
// If this is a property-parameter, then also declare the property symbol into the
// containing class.
if (isParameterPropertyDeclaration(node, node.parent)) {
const classDeclaration = <ClassLikeDeclaration>node.parent.parent;
const classDeclaration = node.parent.parent;
declareSymbol(classDeclaration.symbol.members!, classDeclaration.symbol, node, SymbolFlags.Property | (node.questionToken ? SymbolFlags.Optional : SymbolFlags.None), SymbolFlags.PropertyExcludes);
}
}