Skip to content

Commit e697817

Browse files
committed
Fix: Create body for multiple call signatures (fixs eslint#92)
1 parent c290075 commit e697817

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/ast-converter.js

+6
Original file line numberDiff line numberDiff line change
@@ -1095,6 +1095,12 @@ module.exports = function(ast, extra) {
10951095
method.returnType = convertTypeAnnotation(node.type);
10961096
}
10971097

1098+
if (!method.body) {
1099+
method.body = {
1100+
type: "EmptyFunctionStatement"
1101+
};
1102+
}
1103+
10981104
if (parent.kind === SyntaxKind.ObjectLiteralExpression) {
10991105

11001106
method.params = node.parameters.map(convertChild);

0 commit comments

Comments
 (0)