You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok, found an error on my code, I was passing down the wrapper path to the check function rather than the actual node, doing ArrowFunctionExpression.check(path.value) yields true. However te body type is still wrong
In your case, both JSXElement.check(arrowFunExpr.body) and Expression.check(arrowFunExpr.body) should return true, so I think the body type might be okay?
There are arrow functions whose body is a JSXExpression, like this:
That function will return false if you runthe body type is wrongly defined here:ArrowFunctionExpression.check(path)
and alsoast-types/gen/namedTypes.ts
Line 339 in b99f9b3
Because the type of that body is JSXElement, which doesn't have a nested body, which the other two does. This can lead to uncaught bugs.
The text was updated successfully, but these errors were encountered: