mirror of https://github.com/status-im/metro.git
Make bundle building function async
Reviewed By: jeanlauliac Differential Revision: D4993758 fbshipit-source-id: b466e0d8d494914357f38eac1a0ef3c2ec7d4edd
This commit is contained in:
parent
78600e5f76
commit
3ed489a35a
|
@ -27,7 +27,7 @@ import type {
|
|||
type BuildFn = (
|
||||
entryPoints: Iterable<string>,
|
||||
options: BuildOptions,
|
||||
callback: Callback<{modules: Iterable<Module>, entryModules: Iterable<Module>}>,
|
||||
callback: Callback<GraphResult>,
|
||||
) => void;
|
||||
|
||||
type BuildOptions = {|
|
||||
|
|
|
@ -46,8 +46,8 @@ type GraphOptions = {|
|
|||
|};
|
||||
|
||||
export type GraphResult = {|
|
||||
entryModules: Array<Module>,
|
||||
modules: Array<Module>,
|
||||
entryModules: Iterable<Module>,
|
||||
modules: Iterable<Module>,
|
||||
|};
|
||||
|
||||
export type IdForPathFn = {path: string} => number;
|
||||
|
|
Loading…
Reference in New Issue