Hello, I'm trying to migrate from Storybook 6.5 to 7.0 and am not sure how to have typescript work in stories. I tried following what I found in the docs but I think it's react specific?
main.cjs
module.exports = {
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|ts|svelte)'],
addons: ['@storybook/addon-links', '@storybook/addon-essentials', '@storybook/addon-svelte-csf', '@storybook/addon-a11y', '@storybook/addon-interactions', {
name: '@storybook/addon-postcss',
// awaiting discord response for potential issue
options: {
postcssLoaderOptions: {
implementation: require('postcss')
}
}
}],
framework: '@storybook/sveltekit',
staticDirs: ['../static'],
features: {
interactionsDebugger: true,
},
typescript: {
check: false,
checkOptions: {},
reactDocgen: 'react-docgen-typescript',
reactDocgenTypescriptOptions: {
shouldExtractLiteralValuesFromEnum: true,
propFilter: (prop) => (prop.parent ? !/node_modules/.test(prop.parent.fileName) : true),
},
},
};
At any rate I don't think it's correct as I have Extraction errors and Unexpected tokens everywhere a type is mentioned.