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

@@ -23,7 +23,7 @@ export default function ({ types: t }) {
let { file } = state;
let id = state.opts.pragma || "React.createElement";
for (let comment of file.ast.comments) {
for (let comment of (file.ast.comments: Array<Object>)) {
let matches = JSX_ANNOTATION_REGEX.exec(comment.value);
if (matches) {
id = matches[1];