From e2210ab752bd978f393dd5c6110626fff92bc6b3 Mon Sep 17 00:00:00 2001 From: Emily Janzer Date: Fri, 28 Sep 2018 17:06:57 -0700 Subject: [PATCH] Fix flow in InitializeCore Reviewed By: yungsters Differential Revision: D10115867 fbshipit-source-id: be619b9d6fc30e318cbc0e0fc6e741d80dd94a4b --- Libraries/Core/InitializeCore.js | 6 ------ Libraries/JSInspector/JSInspector.js | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Libraries/Core/InitializeCore.js b/Libraries/Core/InitializeCore.js index 5fcceab22..c55163981 100644 --- a/Libraries/Core/InitializeCore.js +++ b/Libraries/Core/InitializeCore.js @@ -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')); } } diff --git a/Libraries/JSInspector/JSInspector.js b/Libraries/JSInspector/JSInspector.js index d66052ba0..6d7a2f700 100644 --- a/Libraries/JSInspector/JSInspector.js +++ b/Libraries/JSInspector/JSInspector.js @@ -10,7 +10,7 @@ 'use strict'; -import type EventSender from 'InspectorAgent'; +import type {EventSender} from 'InspectorAgent'; interface Agent { constructor(eventSender: EventSender): void;