From 1687f3766e6aa355695c7fdbe8495a4fafe77731 Mon Sep 17 00:00:00 2001 From: Peter van der Zee Date: Fri, 12 Jan 2018 04:09:53 -0800 Subject: [PATCH] Flow cleanup Reviewed By: mjesun Differential Revision: D6702877 fbshipit-source-id: ddb6c508f4a408316aef19d69b3a73c8744d5355 --- packages/metro/src/shared/types.flow.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/metro/src/shared/types.flow.js b/packages/metro/src/shared/types.flow.js index 731c011b..b3817be4 100644 --- a/packages/metro/src/shared/types.flow.js +++ b/packages/metro/src/shared/types.flow.js @@ -27,7 +27,9 @@ import type { } from 'metro-source-map'; type BundleType = 'bundle' | 'delta' | 'map' | 'ram' | 'cli' | 'hmr' | 'todo'; -type SourceMapOrMappings = MetroSourceMap | Array; +type MetroSourceMapOrMappings = + | MetroSourceMap + | Array; export type BundleOptions = { +assetPlugins: Array, @@ -59,7 +61,7 @@ export type ModuleGroups = {| export type ModuleTransportLike = { +code: string, +id: number, - +map: ?SourceMapOrMappings, + +map: ?MetroSourceMapOrMappings, +name?: string, +sourcePath: string, };