mirror of
https://github.com/status-im/metro.git
synced 2025-02-18 14:07:15 +00:00
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 = (
|
type BuildFn = (
|
||||||
entryPoints: Iterable<string>,
|
entryPoints: Iterable<string>,
|
||||||
options: BuildOptions,
|
options: BuildOptions,
|
||||||
callback: Callback<{modules: Iterable<Module>, entryModules: Iterable<Module>}>,
|
callback: Callback<GraphResult>,
|
||||||
) => void;
|
) => void;
|
||||||
|
|
||||||
type BuildOptions = {|
|
type BuildOptions = {|
|
||||||
|
@ -46,8 +46,8 @@ type GraphOptions = {|
|
|||||||
|};
|
|};
|
||||||
|
|
||||||
export type GraphResult = {|
|
export type GraphResult = {|
|
||||||
entryModules: Array<Module>,
|
entryModules: Iterable<Module>,
|
||||||
modules: Array<Module>,
|
modules: Iterable<Module>,
|
||||||
|};
|
|};
|
||||||
|
|
||||||
export type IdForPathFn = {path: string} => number;
|
export type IdForPathFn = {path: string} => number;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user