Skip to content

Commit

Permalink
Fix a $FlowFixMe
Browse files Browse the repository at this point in the history
Reviewed By: huntie

Differential Revision: D39966596

fbshipit-source-id: a2617a1eed71787f728a98101055febe1b1546f3
  • Loading branch information
hoxyq authored and facebook-github-bot committed Oct 4, 2022
1 parent 1b064f2 commit 3ab9c00
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions packages/metro/src/index.flow.js
Expand Up @@ -444,22 +444,19 @@ exports.buildGraph = async function (
}
};

type AttachMetroCLIOptions = {
build?: BuildCommandOptions,
serve?: ServeCommandOptions,
dependencies?: any,
...
};

exports.attachMetroCli = function (
yargs: Yargs,
{
build = {},
serve = {},
dependencies = {},
}: {
build: BuildCommandOptions,
serve: ServeCommandOptions,
dependencies: any,
...
}
// prettier-ignore
// $FlowFixMe[prop-missing]
= {},
options?: AttachMetroCLIOptions = {},
): Yargs {
const {build = {}, serve = {}, dependencies = {}} = options;

yargs.strict();

if (build) {
Expand Down

0 comments on commit 3ab9c00

Please sign in to comment.