Skip to content

Commit

Permalink
chore: get rid of any
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 authored and aleclarson committed Jul 15, 2021
1 parent de6a5e9 commit 2c1b5cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-react/src/jsx-runtime/babel-restore-jsx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ export default function ({ types: t }: typeof babel): babel.PluginObj {
if (!isPlainObjectExpression(node)) {
return null
}
return node.properties.map((prop: any) =>
return node.properties.map((prop) =>
t.isObjectProperty(prop)
? t.jsxAttribute(
getJSXIdentifier(prop.key)!,
getJSXAttributeValue(prop.value)
)
: t.jsxSpreadAttribute(prop.argument)
: t.jsxSpreadAttribute((prop as t.SpreadElement).argument)
)
}

Expand Down

0 comments on commit 2c1b5cf

Please sign in to comment.