metro 0.83.5 → 0.83.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/package.json +15 -15
  2. package/src/Assets.d.ts +8 -1
  3. package/src/Bundler/util.d.ts +8 -1
  4. package/src/Bundler/util.js.flow +3 -3
  5. package/src/Bundler.d.ts +8 -1
  6. package/src/DeltaBundler/DeltaCalculator.d.ts +8 -11
  7. package/src/DeltaBundler/DeltaCalculator.js +55 -46
  8. package/src/DeltaBundler/DeltaCalculator.js.flow +72 -61
  9. package/src/DeltaBundler/Graph.d.ts +8 -1
  10. package/src/DeltaBundler/Serializers/baseJSBundle.d.ts +8 -1
  11. package/src/DeltaBundler/Serializers/getAllFiles.d.ts +8 -1
  12. package/src/DeltaBundler/Serializers/getAssets.d.ts +8 -1
  13. package/src/DeltaBundler/Serializers/getExplodedSourceMap.d.ts +8 -1
  14. package/src/DeltaBundler/Serializers/getRamBundleInfo.d.ts +8 -1
  15. package/src/DeltaBundler/Serializers/helpers/getInlineSourceMappingURL.d.ts +8 -1
  16. package/src/DeltaBundler/Serializers/helpers/getSourceMapInfo.d.ts +8 -1
  17. package/src/DeltaBundler/Serializers/helpers/getTransitiveDependencies.d.ts +8 -1
  18. package/src/DeltaBundler/Serializers/helpers/js.d.ts +8 -1
  19. package/src/DeltaBundler/Serializers/helpers/processModules.d.ts +8 -1
  20. package/src/DeltaBundler/Serializers/hmrJSBundle.d.ts +8 -1
  21. package/src/DeltaBundler/Serializers/sourceMapGenerator.d.ts +8 -1
  22. package/src/DeltaBundler/Serializers/sourceMapObject.d.ts +8 -1
  23. package/src/DeltaBundler/Serializers/sourceMapString.d.ts +8 -1
  24. package/src/DeltaBundler/Transformer.d.ts +8 -1
  25. package/src/DeltaBundler/Worker.d.ts +8 -1
  26. package/src/DeltaBundler/WorkerFarm.d.ts +8 -1
  27. package/src/DeltaBundler/buildSubgraph.d.ts +8 -1
  28. package/src/DeltaBundler/getTransformCacheKey.d.ts +8 -1
  29. package/src/DeltaBundler/getTransformCacheKey.js +3 -1
  30. package/src/DeltaBundler/getTransformCacheKey.js.flow +7 -2
  31. package/src/DeltaBundler/mergeDeltas.d.ts +8 -1
  32. package/src/DeltaBundler/types.d.ts +8 -1
  33. package/src/DeltaBundler.d.ts +8 -1
  34. package/src/HmrServer.d.ts +22 -3
  35. package/src/HmrServer.js +7 -0
  36. package/src/HmrServer.js.flow +15 -5
  37. package/src/IncrementalBundler/GraphNotFoundError.d.ts +8 -1
  38. package/src/IncrementalBundler/ResourceNotFoundError.d.ts +8 -1
  39. package/src/IncrementalBundler/RevisionNotFoundError.d.ts +8 -1
  40. package/src/IncrementalBundler.d.ts +8 -1
  41. package/src/ModuleGraph/worker/JsFileWrapping.d.ts +8 -1
  42. package/src/ModuleGraph/worker/collectDependencies.d.ts +8 -1
  43. package/src/ModuleGraph/worker/generateImportNames.d.ts +8 -1
  44. package/src/ModuleGraph/worker/importLocationsPlugin.d.ts +8 -1
  45. package/src/Server/MultipartResponse.d.ts +8 -1
  46. package/src/Server/symbolicate.d.ts +8 -1
  47. package/src/Server.d.ts +8 -1
  48. package/src/cli/parseKeyValueParamArray.d.ts +8 -1
  49. package/src/cli-utils.d.ts +8 -1
  50. package/src/commands/build.d.ts +8 -1
  51. package/src/commands/dependencies.d.ts +8 -1
  52. package/src/commands/serve.d.ts +8 -1
  53. package/src/index.d.ts +29 -3
  54. package/src/index.flow.js.flow +21 -2
  55. package/src/lib/BatchProcessor.d.ts +8 -1
  56. package/src/lib/CountingSet.d.ts +8 -1
  57. package/src/lib/JsonReporter.d.ts +8 -1
  58. package/src/lib/JsonReporter.js.flow +2 -2
  59. package/src/lib/RamBundleParser.d.ts +8 -1
  60. package/src/lib/TerminalReporter.d.ts +8 -1
  61. package/src/lib/bundleProgressUtils.d.ts +8 -1
  62. package/src/lib/bundleToString.d.ts +8 -1
  63. package/src/lib/contextModule.d.ts +8 -1
  64. package/src/lib/contextModuleTemplates.d.ts +8 -1
  65. package/src/lib/countLines.d.ts +8 -1
  66. package/src/lib/createWebsocketServer.d.ts +8 -1
  67. package/src/lib/debounceAsyncQueue.d.ts +8 -1
  68. package/src/lib/formatBundlingError.d.ts +8 -1
  69. package/src/lib/getAppendScripts.d.ts +8 -1
  70. package/src/lib/getAppendScripts.js.flow +2 -2
  71. package/src/lib/getGraphId.d.ts +8 -1
  72. package/src/lib/getPreludeCode.d.ts +8 -1
  73. package/src/lib/getPrependedScripts.d.ts +8 -1
  74. package/src/lib/isResolvedDependency.d.ts +8 -1
  75. package/src/lib/logToConsole.d.ts +8 -1
  76. package/src/lib/parseBundleOptionsFromBundleRequestUrl.d.ts +8 -1
  77. package/src/lib/parseCustomResolverOptions.d.ts +8 -1
  78. package/src/lib/parseCustomTransformOptions.d.ts +8 -1
  79. package/src/lib/parseJsonBody.d.ts +8 -1
  80. package/src/lib/pathUtils.d.ts +8 -1
  81. package/src/lib/relativizeSourceMap.d.ts +8 -1
  82. package/src/lib/reporting.d.ts +8 -1
  83. package/src/lib/splitBundleOptions.d.ts +8 -1
  84. package/src/lib/transformHelpers.d.ts +8 -1
  85. package/src/node-haste/DependencyGraph/ModuleResolution.d.ts +16 -22
  86. package/src/node-haste/DependencyGraph/ModuleResolution.js +4 -22
  87. package/src/node-haste/DependencyGraph/ModuleResolution.js.flow +10 -59
  88. package/src/node-haste/DependencyGraph/createFileMap.d.ts +8 -1
  89. package/src/node-haste/DependencyGraph/createFileMap.js +1 -1
  90. package/src/node-haste/DependencyGraph/createFileMap.js.flow +4 -2
  91. package/src/node-haste/DependencyGraph.d.ts +9 -5
  92. package/src/node-haste/DependencyGraph.js +22 -11
  93. package/src/node-haste/DependencyGraph.js.flow +24 -13
  94. package/src/node-haste/PackageCache.d.ts +19 -16
  95. package/src/node-haste/PackageCache.js +65 -54
  96. package/src/node-haste/PackageCache.js.flow +103 -79
  97. package/src/node-haste/lib/AssetPaths.d.ts +8 -1
  98. package/src/node-haste/lib/parsePlatformFilePath.d.ts +8 -1
  99. package/src/shared/output/RamBundle/as-assets.d.ts +8 -1
  100. package/src/shared/output/RamBundle/as-indexed-file.d.ts +8 -1
  101. package/src/shared/output/RamBundle/buildSourcemapWithMetadata.d.ts +8 -1
  102. package/src/shared/output/RamBundle/magic-number.d.ts +8 -1
  103. package/src/shared/output/RamBundle/util.d.ts +8 -1
  104. package/src/shared/output/RamBundle/write-sourcemap.d.ts +8 -1
  105. package/src/shared/output/RamBundle.d.ts +8 -1
  106. package/src/shared/output/bundle.d.ts +8 -1
  107. package/src/shared/output/meta.d.ts +8 -1
  108. package/src/shared/output/unbundle.d.ts +8 -1
  109. package/src/shared/output/writeFile.d.ts +8 -1
  110. package/src/shared/types.d.ts +8 -1
  111. package/src/node-haste/Package.d.ts +0 -21
  112. package/src/node-haste/Package.js +0 -28
  113. package/src/node-haste/Package.js.flow +0 -39
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<367f11c0b6933f8c8c58718c7dd41e78>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/commands/serve.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  import type {CommandModule} from 'yargs';
package/src/index.d.ts CHANGED
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<3c6460427c6760887187d6b16151c609>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/index.flow.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  import type {AssetData} from './Assets';
@@ -118,9 +125,28 @@ type DependenciesCommandOptions = Readonly<{
118
125
  }> | null;
119
126
  export {Terminal, JsonReporter, TerminalReporter};
120
127
  export type {AssetData} from './Assets';
121
- export type {Reporter, ReportableEvent} from './lib/reporting';
128
+ export type {
129
+ AsyncDependencyType,
130
+ DeltaResult,
131
+ Dependency,
132
+ MixedOutput,
133
+ Module,
134
+ ReadOnlyDependencies,
135
+ ReadOnlyGraph,
136
+ SerializerOptions,
137
+ TransformInputOptions,
138
+ TransformResult,
139
+ TransformResultDependency,
140
+ } from './DeltaBundler/types';
141
+ export type {default as DependencyGraph} from './node-haste/DependencyGraph';
142
+ export type {BundleDetails, Reporter, ReportableEvent} from './lib/reporting';
122
143
  export type {TerminalReportableEvent} from './lib/TerminalReporter';
123
- export type {MetroConfig};
144
+ export type {
145
+ ContextMode,
146
+ RequireContextParams,
147
+ } from './ModuleGraph/worker/collectDependencies';
148
+ export type {ServerOptions} from './Server';
149
+ export type {MetroConfig, MetroServer};
124
150
  export declare function runMetro(
125
151
  config: InputConfigT,
126
152
  options?: RunMetroOptions,
@@ -156,9 +156,28 @@ type DependenciesCommandOptions = Readonly<{[string]: unknown}> | null;
156
156
  export {Terminal, JsonReporter, TerminalReporter};
157
157
 
158
158
  export type {AssetData} from './Assets';
159
- export type {Reporter, ReportableEvent} from './lib/reporting';
159
+ export type {
160
+ AsyncDependencyType,
161
+ DeltaResult,
162
+ Dependency,
163
+ MixedOutput,
164
+ Module,
165
+ ReadOnlyDependencies,
166
+ ReadOnlyGraph,
167
+ SerializerOptions,
168
+ TransformInputOptions,
169
+ TransformResult,
170
+ TransformResultDependency,
171
+ } from './DeltaBundler/types';
172
+ export type {default as DependencyGraph} from './node-haste/DependencyGraph';
173
+ export type {BundleDetails, Reporter, ReportableEvent} from './lib/reporting';
160
174
  export type {TerminalReportableEvent} from './lib/TerminalReporter';
161
- export type {MetroConfig};
175
+ export type {
176
+ ContextMode,
177
+ RequireContextParams,
178
+ } from './ModuleGraph/worker/collectDependencies';
179
+ export type {ServerOptions} from './Server';
180
+ export type {MetroConfig, MetroServer};
162
181
 
163
182
  async function getConfig(config: InputConfigT): Promise<ConfigT> {
164
183
  const defaultConfig = await getDefaultConfig(config.projectRoot);
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<5872ab26db1c8f4499c971170c5012c4>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/BatchProcessor.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  import {setTimeout} from 'timers';
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<0fccda5d7f0eb38539316fa1fedae97b>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/CountingSet.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  export interface ReadOnlyCountingSet<T> extends Iterable<T> {
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<e7173f8dc5e076fd37b9a1cecd581f58>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/JsonReporter.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  import type {Writable} from 'stream';
@@ -19,7 +19,7 @@ export type SerializedError = {
19
19
  ...
20
20
  };
21
21
 
22
- export type SerializedEvent<TEvent: {+[string]: unknown, ...}> =
22
+ export type SerializedEvent<TEvent extends {+[string]: unknown, ...}> =
23
23
  TEvent extends {
24
24
  error: Error,
25
25
  ...
@@ -31,7 +31,7 @@ export type SerializedEvent<TEvent: {+[string]: unknown, ...}> =
31
31
  }
32
32
  : TEvent;
33
33
 
34
- export default class JsonReporter<TEvent: {+[string]: unknown, ...}> {
34
+ export default class JsonReporter<TEvent extends {+[string]: unknown, ...}> {
35
35
  _stream: Writable;
36
36
 
37
37
  constructor(stream: Writable) {
@@ -4,7 +4,14 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
+ * @generated SignedSource<<ebddbde1dcdecbbee129fd96caaf3bb0>>
9
+ *
10
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
11
+ * Original file: packages/metro/src/lib/RamBundleParser.js
12
+ * To regenerate, run:
13
+ * js1 build metro-ts-defs (internal) OR
14
+ * yarn run build-ts-defs (OSS)
8
15
  */
9
16
 
10
17
  /**
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<8218e45d6b5186264c4bf9e54086708a>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/TerminalReporter.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  import type {BundleDetails, ReportableEvent} from './reporting';
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<6f0cfa5c118fa3cbe65acee044b8c927>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/bundleProgressUtils.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  /**
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<89a26e72bdd126e3feb0abc9b3186d33>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/bundleToString.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  import type {Bundle, BundleMetadata} from 'metro-runtime/src/modules/types';
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<461f7a7b3b3d99d1f1e7eeeeb5125686>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/contextModule.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  import type {
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<bcc2ba36a2edccb791b6d380f2c27ebe>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/contextModuleTemplates.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  import type {ContextMode} from '../ModuleGraph/worker/collectDependencies';
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<a9f443cc44465917ebb470200e0f80d2>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/countLines.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  declare function countLines(string: string): number;
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<cc8010b98646f8cfd713ae5505f71ef1>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/createWebsocketServer.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  import ws from 'ws';
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<900f968546b7cc3e463e2de9d1f06200>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/debounceAsyncQueue.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  declare function debounceAsyncQueue<T>(
@@ -4,7 +4,14 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
+ * @generated SignedSource<<0c18118765a7730747fbadfd10e5d8f6>>
9
+ *
10
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
11
+ * Original file: packages/metro/src/lib/formatBundlingError.js
12
+ * To regenerate, run:
13
+ * js1 build metro-ts-defs (internal) OR
14
+ * yarn run build-ts-defs (OSS)
8
15
  */
9
16
 
10
17
  import type {FormattedError} from 'metro-runtime/src/modules/types';
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<72fd04e53dc895f1305e10043f986edc>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/getAppendScripts.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  import type {Module} from '../DeltaBundler';
@@ -18,7 +18,7 @@ import CountingSet from './CountingSet';
18
18
  import countLines from './countLines';
19
19
  import nullthrows from 'nullthrows';
20
20
 
21
- type Options<T: number | string> = Readonly<{
21
+ type Options<T extends number | string> = Readonly<{
22
22
  asyncRequireModulePath: string,
23
23
  createModuleId: string => T,
24
24
  getRunModuleStatement: (moduleId: T, globalPrefix: string) => string,
@@ -33,7 +33,7 @@ type Options<T: number | string> = Readonly<{
33
33
  ...
34
34
  }>;
35
35
 
36
- export default function getAppendScripts<T: number | string>(
36
+ export default function getAppendScripts<T extends number | string>(
37
37
  entryPoint: string,
38
38
  modules: ReadonlyArray<Module<>>,
39
39
  options: Options<T>,
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<cb5003f203d26e24459419b5f28e4f06>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/getGraphId.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  import type {TransformInputOptions} from '../DeltaBundler/types';
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<c57e62398654e4f07fea53d28c279b20>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/getPreludeCode.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  declare function getPreludeCode($$PARAM_0$$: {
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<a85e80b79c0295e96824c17436edfcca>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/getPrependedScripts.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  import type Bundler from '../Bundler';
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<f1d42fcf747b4fa7641e50b8d4ddc424>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/isResolvedDependency.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  import type {Dependency, ResolvedDependency} from '../DeltaBundler/types';
@@ -4,7 +4,14 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
+ * @generated SignedSource<<95cf7d414507e2035210d06882d858b3>>
9
+ *
10
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
11
+ * Original file: packages/metro/src/lib/logToConsole.js
12
+ * To regenerate, run:
13
+ * js1 build metro-ts-defs (internal) OR
14
+ * yarn run build-ts-defs (OSS)
8
15
  */
9
16
 
10
17
  import type {Terminal} from 'metro-core';
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<972fc847af4a55ba0e4863c90532e99c>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/parseBundleOptionsFromBundleRequestUrl.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  import type {BundleOptions} from '../shared/types';
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<e0f212b1e687fef985215d8c152e7c04>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/parseCustomResolverOptions.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  import type {CustomResolverOptions} from 'metro-resolver';
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<086e5d861160a99775fa58beba59492a>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/parseCustomTransformOptions.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  import type {CustomTransformOptions} from 'metro-transform-worker';
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<cd5e7346556814416374b8c8e79a8674>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/parseJsonBody.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  import type {IncomingMessage} from 'http';
@@ -4,7 +4,14 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
+ * @generated SignedSource<<61d935169a7ad0d7f2d7b4c6e4eb0a96>>
9
+ *
10
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
11
+ * Original file: packages/metro/src/lib/pathUtils.js
12
+ * To regenerate, run:
13
+ * js1 build metro-ts-defs (internal) OR
14
+ * yarn run build-ts-defs (OSS)
8
15
  */
9
16
 
10
17
  export declare const normalizePathSeparatorsToPosix: (
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<5282fe2c42baa79f957ef2a40bec560b>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/relativizeSourceMap.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  import type {MixedSourceMap} from 'metro-source-map';
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<1ff95f1ad6bb911f3d2c2bc41d59bc1a>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/reporting.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  import type {Terminal} from 'metro-core';
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<cf1e935fe7a5b1c8573b53b1c1921e70>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/splitBundleOptions.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  import type {BundleOptions, SplitBundleOptions} from '../shared/types';
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<dfdfdf9ddb80994cc031e3767a87b56f>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro/src/lib/transformHelpers.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  import type Bundler from '../Bundler';