Fix Flow.

Removed `@flow` annotation from files that don't actually pass Flow check at the moment. These will be added back file by file once the files are properly converted to use Flow.

Closes #3064
This commit is contained in:
Daniel Lo Nigro
2015-11-15 21:29:59 -08:00
parent 1d34d19ce9
commit 0076204f80
84 changed files with 55 additions and 194 deletions

View File

@@ -1,5 +1,3 @@
/* @flow */
import getFunctionArity from "babel-helper-get-function-arity";
import template from "babel-template";
import * as t from "babel-types";
@@ -62,7 +60,7 @@ function wrap(state, method, id, scope) {
FUNCTION_KEY: scope.generateUidIdentifier(id.name)
}).expression;
template.callee._skipModulesRemap = true;
// shim in dummy params to retain function arity, if you try to read the
// source then you'll get the original since it's proxied so it's all good
let params = template.callee.body.body[0].params;