Skip to content

Commit

Permalink
Fix TS type for resolveConfig function
Browse files Browse the repository at this point in the history
Summary:
Related: react-native-community/cli#1889.

Changelog: **[Types]** Fix return type on `'metro-config'.resolveConfig`

Reviewed By: motiz88

Differential Revision: D44540075

fbshipit-source-id: 182c3d7ac3c75446a905cb2988bef8044dea2a76
  • Loading branch information
huntie authored and facebook-github-bot committed Mar 30, 2023
1 parent d2f3664 commit 9ee5280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/metro-config/types/loadConfig.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function loadConfig(
export function resolveConfig(
filePath?: string,
cwd?: string,
): Promise<ConfigT>;
): Promise<CosmiConfigResult>;

export function mergeConfig(
defaultConfig: InputConfigT,
Expand Down

0 comments on commit 9ee5280

Please sign in to comment.