Update flow version and address type errors. (#1369)

This commit is contained in:
Ashish Myles
2018-05-27 16:19:10 -04:00
committed by GitHub
parent 9cde0336d3
commit e3fb2f95ae
4 changed files with 13 additions and 1 deletions

View File

@@ -110,6 +110,10 @@ export default function defineEnvironment<NODETYPE: NodeType>({
handler,
};
for (let i = 0; i < names.length; ++i) {
// TODO: The value type of _environments should be a type union of all
// possible `EnvSpec<>` possibilities instead of `EnvSpec<*>`, which is
// an existential type.
// $FlowFixMe
_environments[names[i]] = data;
}
if (htmlBuilder) {