From bcd6293c02986ffd02abe224b4ff1c9d390abb3d Mon Sep 17 00:00:00 2001 From: Alex Kanunnikov Date: Sat, 4 May 2024 18:20:53 +0300 Subject: [PATCH] + --- plugins/converter.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/converter.ts b/plugins/converter.ts index 5d5f1f12..82013960 100644 --- a/plugins/converter.ts +++ b/plugins/converter.ts @@ -232,8 +232,7 @@ export function convert( return node.path.value; } else if (node.path.type === 'SubExpression') { return `${wrap ? `$:() => ` : ''}${ToJSType(node.path)}`; - } - if (node.path.type === 'StringLiteral') { + } else if (node.path.type === 'StringLiteral') { return escapeString(node.path.value); } return null;