Skip to content

Commit

Permalink
fix type for storybook index.cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
DanDroryAu committed Dec 18, 2024
1 parent becabc3 commit a688ce9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/sku/src/config/storybook/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,18 @@

/** @typedef {import("@storybook/react-webpack5").StorybookConfig} StorybookConfig */

/** @type {StorybookConfig['webpackFinal']} */
/** @typedef {import("webpack").Configuration} Configuration */

/**
* @typedef {object} WebpackOptions
* @property {'PRODUCTION' | 'DEVELOPMENT' | undefined} [configType]
*/

/**
* @typedef {function(Configuration, WebpackOptions): Promise<Configuration>} AsyncWebpackFinal
*/

/** @type AsyncWebpackFinal */
const webpackFinal = async (config, { configType }) => {
const makeStorybookWebpackConfig = (
await import('./storybookWebpackConfig.js')
Expand Down

0 comments on commit a688ce9

Please sign in to comment.