storybook/docs/snippets/common/storybook-main-add-ts-config.js.mdx
2020-10-07 12:23:34 +08:00

15 lines
345 B
Plaintext

```js
// .storybook/main.js
module.exports = {
typescript: {
check: false,
checkOptions: {},
reactDocgen: 'react-docgen-typescript',
reactDocgenTypescriptOptions: {
shouldExtractLiteralValuesFromEnum: true,
propFilter: (prop) => (prop.parent ? !/node_modules/.test(prop.parent.fileName) : true),
},
},
};
```