From 01ab028d4fb3600c89438b0b7916ec8350f8f71a Mon Sep 17 00:00:00 2001 From: Peter van der Zee Date: Thu, 11 Jan 2018 15:21:30 -0800 Subject: [PATCH] Clean up mapping types Reviewed By: mjesun Differential Revision: D6702876 fbshipit-source-id: 5a19ba033016e14b6aaa919ef838e32ed35748c7 --- packages/metro-source-map/src/source-map.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/metro-source-map/src/source-map.js b/packages/metro-source-map/src/source-map.js index 5e5ce15e..6586b961 100644 --- a/packages/metro-source-map/src/source-map.js +++ b/packages/metro-source-map/src/source-map.js @@ -20,7 +20,6 @@ import type {RawMapping as BabelRawMapping} from 'babel-generator'; import type {RawMapping as UnknownSourceMapMappingType} from 'source-map'; export type UnknownSourceMapMappingTypes = Array; -export type RawMappings = Array; type GeneratedCodeMapping = [number, number]; type SourceMapping = [number, number, number, number]; @@ -90,7 +89,7 @@ function fromRawMappings( * Transforms a standard source map object into a Raw Mappings object, to be * used across the bundler. */ -function toRawMappings(sourceMap: BabelSourceMap): RawMappings { +function toRawMappings(sourceMap: BabelSourceMap): Array { const rawMappings = []; new SourceMap.SourceMapConsumer(sourceMap).eachMapping(map => {