From 199b51892b539a36e36061daaf1f25cd46ee9e11 Mon Sep 17 00:00:00 2001 From: Peter van der Zee Date: Fri, 12 Jan 2018 04:37:12 -0800 Subject: [PATCH] Drop redundant type re-export Reviewed By: mjesun Differential Revision: D6711235 fbshipit-source-id: 0e5cb6c22ba4000589f8b97dcfb340297aea5a41 --- packages/metro/src/ModuleGraph/types.flow.js | 2 -- packages/metro/src/ModuleGraph/worker/transform-module.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/metro/src/ModuleGraph/types.flow.js b/packages/metro/src/ModuleGraph/types.flow.js index 02967e84..c4561fd6 100644 --- a/packages/metro/src/ModuleGraph/types.flow.js +++ b/packages/metro/src/ModuleGraph/types.flow.js @@ -16,8 +16,6 @@ import type {BabelSourceMap} from 'babel-core'; import type {Console} from 'console'; import type {FBSourceMap, MetroSourceMap} from 'metro-source-map'; -export type {Transformer} from '../JSTransformer/worker'; - export type BuildResult = {| ...GraphResult, prependedScripts: $ReadOnlyArray, diff --git a/packages/metro/src/ModuleGraph/worker/transform-module.js b/packages/metro/src/ModuleGraph/worker/transform-module.js index d0d17137..653a31a9 100644 --- a/packages/metro/src/ModuleGraph/worker/transform-module.js +++ b/packages/metro/src/ModuleGraph/worker/transform-module.js @@ -27,12 +27,12 @@ const path = require('path'); const {isAssetTypeAnImage} = require('../../Bundler/util'); const {basename} = require('path'); +import type {Transformer} from '../../JSTransformer/worker'; import type {HasteImpl} from '../../node-haste/Module'; import type { ImageSize, TransformedCodeFile, TransformedSourceFile, - Transformer, TransformResult, TransformVariants, } from '../types.flow';