Skip to content

Commit 3e3f336

Browse files
committed
Fix for null extends in TS interface
1 parent dcd5e06 commit 3e3f336

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/infer/augments.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function inferAugments(comment) {
3131
name: generate(path.node.superClass).code
3232
});
3333
}
34-
} else if (path.isInterfaceDeclaration() || path.isTSInterfaceDeclaration()) {
34+
} else if ((path.isInterfaceDeclaration() || path.isTSInterfaceDeclaration()) && path.node.extends) {
3535
/*
3636
* extends is an array of interface identifiers or
3737
* qualified type identifiers, so we generate code

0 commit comments

Comments
 (0)