@@ -1,6 +1,6 @@
|
||||
export default function ({ types: t }) {
|
||||
function hasSpread(node) {
|
||||
for (let prop of node.properties) {
|
||||
for (let prop of (node.properties: Array<Object>)) {
|
||||
if (t.isSpreadProperty(prop)) {
|
||||
return true;
|
||||
}
|
||||
@@ -24,7 +24,7 @@ export default function ({ types: t }) {
|
||||
props = [];
|
||||
}
|
||||
|
||||
for (let prop of path.node.properties) {
|
||||
for (let prop of (path.node.properties: Array)) {
|
||||
if (t.isSpreadProperty(prop)) {
|
||||
push();
|
||||
args.push(prop.argument);
|
||||
|
||||
Reference in New Issue
Block a user