Skip to content

Commit

Permalink
feat(storybook-builder): add typing for loadedConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Asuka109 committed Oct 24, 2023
1 parent fa2a569 commit aca720a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/storybook/builder/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export async function getCompiler(
() => loadConfig(cwd, builderOptions.configPath || getConfigFileName()),
'Failed to load config',
);
const loadedConfig = res ? res.config : {};
const loadedConfig = (res ? res.config : {}) as BuilderConfig;

const finalConfig =
(await presets.apply<BuilderConfig | void>('modern', loadedConfig)) ||
Expand Down

0 comments on commit aca720a

Please sign in to comment.