diff --git a/packages/metro-bundler/src/ModuleGraph/ModuleGraph.js b/packages/metro-bundler/src/ModuleGraph/ModuleGraph.js index 757fe16f..9d67a024 100644 --- a/packages/metro-bundler/src/ModuleGraph/ModuleGraph.js +++ b/packages/metro-bundler/src/ModuleGraph/ModuleGraph.js @@ -27,7 +27,7 @@ import type { type BuildFn = ( entryPoints: Iterable, options: BuildOptions, - callback: Callback<{modules: Iterable, entryModules: Iterable}>, + callback: Callback, ) => void; type BuildOptions = {| diff --git a/packages/metro-bundler/src/ModuleGraph/types.flow.js b/packages/metro-bundler/src/ModuleGraph/types.flow.js index aedf1e08..dd105630 100644 --- a/packages/metro-bundler/src/ModuleGraph/types.flow.js +++ b/packages/metro-bundler/src/ModuleGraph/types.flow.js @@ -46,8 +46,8 @@ type GraphOptions = {| |}; export type GraphResult = {| - entryModules: Array, - modules: Array, + entryModules: Iterable, + modules: Iterable, |}; export type IdForPathFn = {path: string} => number;