Skip to content

Instantly share code, notes, and snippets.

@jmayergit
Created September 30, 2022 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmayergit/882608e41cac360a580e112d1b3e94c2 to your computer and use it in GitHub Desktop.
Save jmayergit/882608e41cac360a580e112d1b3e94c2 to your computer and use it in GitHub Desktop.
Typing Storybook
// @ts-check
const path = require("path");
module.exports = {
// ...
/** @param {import('@storybook/builder-webpack5/node_modules/webpack/types').Configuration} config */
webpackFinal: async (config) => {
// config is typed accordingly
return config;
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment