diff --git a/app/client/packages/ast/src/actionCreator/index.ts b/app/client/packages/ast/src/actionCreator/index.ts index de42fb42b5c5..100734a2c02c 100644 --- a/app/client/packages/ast/src/actionCreator/index.ts +++ b/app/client/packages/ast/src/actionCreator/index.ts @@ -800,13 +800,16 @@ export function canTranslateToUI( simple(astWithComments, { ConditionalExpression(node) { if ( + // @ts-expect-error: types not matched isCallExpressionNode(node.consequent) || + // @ts-expect-error: types not matched isCallExpressionNode(node.alternate) ) { canTranslate = false; } }, LogicalExpression(node) { + // @ts-expect-error: types not matched if (isCallExpressionNode(node.left) || isCallExpressionNode(node.right)) { canTranslate = false; } @@ -909,10 +912,12 @@ export function getMainAction( ExpressionStatement(node) { simple(node, { CallExpression(node) { + // @ts-expect-error: types not matched if (node.callee.type === NodeTypes.Identifier) { mainAction = generate(node, { comments: true }).trim(); } else { mainAction = + // @ts-expect-error: types not matched generate(node.callee, { comments: true }).trim() + "()"; } },