Skip to content

Commit

Permalink
Align GetTransformOptions type to return partial options
Browse files Browse the repository at this point in the history
Summary: Context + tests: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/64775/files#r1138424007

Reviewed By: jacdebug

Differential Revision: D44131338

fbshipit-source-id: 929df76fde819062390275fe2df4bf01861e424f
  • Loading branch information
huntie authored and facebook-github-bot committed Mar 16, 2023
1 parent 72a52ca commit 20c4a65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/metro-config/src/configTypes.flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export type GetTransformOptions = (
entryPoints: $ReadOnlyArray<string>,
options: GetTransformOptionsOpts,
getDependenciesOf: (string) => Promise<Array<string>>,
) => Promise<ExtraTransformOptions>;
) => Promise<Partial<ExtraTransformOptions>>;

export type Middleware = (
IncomingMessage,
Expand Down

0 comments on commit 20c4a65

Please sign in to comment.