mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-09 02:30:15 -06:00
Exclude static properties
This commit is contained in:
parent
3a7a99f7c5
commit
190f99e460
@ -22236,7 +22236,7 @@ namespace ts {
|
||||
}
|
||||
const constructor = findConstructorDeclaration(node);
|
||||
for (const member of node.members) {
|
||||
if (member.kind === SyntaxKind.PropertyDeclaration && !(<PropertyDeclaration>member).initializer) {
|
||||
if (member.kind === SyntaxKind.PropertyDeclaration && !hasModifier(member, ModifierFlags.Static) && !(<PropertyDeclaration>member).initializer) {
|
||||
const propName = (<PropertyDeclaration>member).name;
|
||||
if (isIdentifier(propName)) {
|
||||
const type = getTypeOfSymbol(getSymbolOfNode(member));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user