Migrate Babel from Flow to TypeScript (except Babel parser) (#11578)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
This commit is contained in:
@@ -249,7 +249,8 @@ export default declare((api, options) => {
|
||||
const id = path.scope.generateUidBasedOnNode(name);
|
||||
targetScope.push({ id: t.identifier(id) });
|
||||
|
||||
let replacement = template.expression.ast`
|
||||
let replacement: t.Expression | t.JSXExpressionContainer = template
|
||||
.expression.ast`
|
||||
${t.identifier(id)} || (${t.identifier(id)} = ${path.node})
|
||||
`;
|
||||
if (
|
||||
Reference in New Issue
Block a user