Fix flow in InitializeCore

Reviewed By: yungsters

Differential Revision: D10115867

fbshipit-source-id: be619b9d6fc30e318cbc0e0fc6e741d80dd94a4b
This commit is contained in:
Emily Janzer
2018-11-07 10:06:45 +00:00
committed by Lorenzo Sciandra
parent e8c9f3cc9b
commit 12f2733592
2 changed files with 1 additions and 7 deletions
-6
View File
@@ -91,9 +91,6 @@ polyfillGlobal('regeneratorRuntime', () => {
// The require just sets up the global, so make sure when we first
// invoke it the global does not exist
delete global.regeneratorRuntime;
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an
* error found when Flow v0.54 was deployed. To see the error delete this
* comment and run Flow. */
require('regenerator-runtime/runtime');
return global.regeneratorRuntime;
});
@@ -214,9 +211,6 @@ if (__DEV__) {
// Set up inspector
const JSInspector = require('JSInspector');
/* $FlowFixMe(>=0.56.0 site=react_native_fb,react_native_oss) This comment
* suppresses an error found when Flow v0.56 was deployed. To see the error
* delete this comment and run Flow. */
JSInspector.registerAgent(require('NetworkAgent'));
}
}
+1 -1
View File
@@ -10,7 +10,7 @@
'use strict';
import type EventSender from 'InspectorAgent';
import type {EventSender} from 'InspectorAgent';
interface Agent {
constructor(eventSender: EventSender): void;