Revert "Remove flow"

This reverts commit 2827ff6b01.
This commit is contained in:
Amjad Masad
2016-03-03 14:49:20 -08:00
parent b88182cacf
commit 3667527d04
75 changed files with 542 additions and 278 deletions

View File

@@ -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);