typescript
Parent: main.js|ts configuration
Type:
Configures how Storybook handles TypeScript files.
check
Type: boolean
Optionally run fork-ts-checker-webpack-plugin. Note that because this uses a Webpack plugin, it is only available when using the Webpack builder.
checkOptions
Type: CheckOptions
Options to pass to fork-ts-checker-webpack-plugin
, if enabled. See docs for available options.
reactDocgen
Type: 'react-docgen' | 'react-docgen-typescript' | false
Default:
false
: if@storybook/react
is not installed'react-docgen-typescript'
: if@storybook/react
andtypescript
are installed'react-docgen'
: if@storybook/react
is installed
Only available for React Storybook projects. Configure which library, if any, Storybook uses to parse React components, react-docgen or react-docgen-typescript. Set to false
to disable parsing React components.
reactDocgenTypescriptOptions
Type: ReactDocgenTypescriptOptions
Only available for React Storybook projects. Options to pass to react-docgen-typescript-plugin if react-docgen-typescript is enabled. See docs for available options.
skipBabel
Type: boolean
Disable parsing of TypeScript files through babel.