Skip to content

Commit 6784e8b

Browse files
committed
Fix: Create body for abstract methods (fixes eslint#80)
1 parent f1ec3e7 commit 6784e8b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/ast-converter.js

+3
Original file line numberDiff line numberDiff line change
@@ -1140,6 +1140,9 @@ module.exports = function(ast, extra) {
11401140
});
11411141
if (isAbstractMethod) {
11421142
methodDefinitionType = "TSAbstractMethodDefinition";
1143+
method.body = {
1144+
type: "AbstractStatement"
1145+
};
11431146
}
11441147
}
11451148

0 commit comments

Comments
 (0)