diff --git a/lib/ast-converter.js b/lib/ast-converter.js index 7064f26..c59524a 100644 --- a/lib/ast-converter.js +++ b/lib/ast-converter.js @@ -1095,6 +1095,12 @@ module.exports = function(ast, extra) { method.returnType = convertTypeAnnotation(node.type); } + if (!method.body) { + method.body = { + type: "EmptyFunctionStatement" + }; + } + if (parent.kind === SyntaxKind.ObjectLiteralExpression) { method.params = node.parameters.map(convertChild);