Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeart committed May 4, 2024
1 parent e43a489 commit bcd6293
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bcd6293

Please sign in to comment.