We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da991bc commit 10a4557Copy full SHA for 10a4557
src/core/convert.ts
@@ -251,7 +251,11 @@ function transformJsx(code: string, node: JSX) {
251
)
252
return expressions.slice(-1)[0]
253
}
254
- case 'TSNonNullExpression':
+ case 'ParenthesizedExpression': // (1)
255
+ case 'TSNonNullExpression': // 1!
256
+ case 'TSAsExpression': // 1 as number
257
+ case 'TSTypeAssertion': // (<number>2)
258
+ case 'TSInstantiationExpression': // '1'<string>
259
return resolveExpression(node.expression, node)
260
case 'CallExpression':
261
return resolveCallExpression(node, !parent)
0 commit comments