Skip to content

Commit f164727

Browse files
committed
feat: empty config options fallback
1 parent 5a8ede0 commit f164727

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

packages/core/src/bundle-oas.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,13 @@ export async function bundleOas(
7474
});
7575
}
7676

77-
export function loadConfig(options: {
78-
configPath?: string;
79-
customExtends?: string[];
80-
externalRefResolver?: BaseResolver;
81-
}) {
77+
export function loadConfig(
78+
options: {
79+
configPath?: string;
80+
customExtends?: string[];
81+
externalRefResolver?: BaseResolver;
82+
} = {}
83+
) {
8284
return new Config(
8385
{
8486
rules: {},

0 commit comments

Comments
 (0)