main
js 25 lines 638 Bytes
Raw
1 /**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 * @flow
8 */
9
10 // This is the parsed shape of the wire format which is why it is
11 // condensed to only the essentialy information
12 export type ImportMetadata = [
13 // eslint does not understand Flow tuple syntax.
14 /* eslint-disable */
15 id: string,
16 name: string,
17 bundles: Array<string>,
18 importMap?: {[string]: string},
19 /* eslint-enable */
20 ];
21
22 export const ID = 0;
23 export const NAME = 1;
24 export const BUNDLES = 2;
25 export const IMPORT_MAP = 3;