Skip to content

Commit de76bfc

Browse files
committed
Fix a crash when processing a mixed class/namespace definition
1 parent b2899ef commit de76bfc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/api-extractor/src/ast/AstStructuredType.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default class AstStructuredType extends AstItemContainer {
5151
this.kind = AstItemKind.Class;
5252
}
5353

54-
for (const memberDeclaration of this._classLikeDeclaration.members) {
54+
for (const memberDeclaration of this._classLikeDeclaration.members || []) {
5555
const memberSymbol: ts.Symbol = TypeScriptHelpers.tryGetSymbolForDeclaration(memberDeclaration);
5656
if (memberSymbol) {
5757
this._processMember(memberSymbol, memberDeclaration);

0 commit comments

Comments
 (0)