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

@@ -54,13 +54,13 @@ export default function ({ types: t }) {
if (path.isClass()) {
if (path.node.decorators) return true;
for (let method of path.node.body.body) {
for (let method of (path.node.body.body: Array<Object>)) {
if (method.decorators) {
return true;
}
}
} else if (path.isObjectExpression()) {
for (let prop of path.node.properties) {
for (let prop of (path.node.properties: Array<Object>)) {
if (prop.decorators) {
return true;
}