UNPKG

943 BTypeScriptView Raw
1import type { PluginItem } from '@babel/core';
2import type { PluginOptions } from 'react-docgen-typescript-plugin';
3export declare type Preset = string | {
4 name: string;
5};
6export interface StorybookConfig {
7 /**
8 * Optionally set the package name of a react-scripts fork.
9 * In most cases, the package is located automatically by this preset.
10 */
11 scriptsPackageName?: string;
12 /**
13 * Overrides for Create React App's Webpack configuration.
14 */
15 craOverrides?: {
16 fileLoaderExcludes?: string[];
17 };
18 configDir: string;
19 babelOptions: {
20 extends: string | null;
21 plugins: PluginItem[] | null;
22 presets: PluginItem[] | null;
23 };
24 presetsList: Preset[];
25 packageJson: {
26 version: string;
27 };
28 typescriptOptions?: {
29 reactDocgen: 'react-docgen-typescript' | 'react-docgen' | false;
30 reactDocgenTypescriptOptions: PluginOptions;
31 };
32}