Skip to content

Commit 9ee5280

Browse files
huntiefacebook-github-bot
authored andcommitted
Fix TS type for resolveConfig function
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
1 parent d2f3664 commit 9ee5280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/metro-config/types/loadConfig.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function loadConfig(
2727
export function resolveConfig(
2828
filePath?: string,
2929
cwd?: string,
30-
): Promise<ConfigT>;
30+
): Promise<CosmiConfigResult>;
3131

3232
export function mergeConfig(
3333
defaultConfig: InputConfigT,

0 commit comments

Comments
 (0)