UNPKG

682 BPlain TextView Raw
1import type { StorybookConfig as BaseConfig } from '@storybook/core-common';
2
3/**
4 * The interface for Storybook configuration in `main.ts` files.
5 */
6export interface StorybookConfig extends BaseConfig {
7 reactOptions?: {
8 fastRefresh?: boolean;
9 strictMode?: boolean;
10 /**
11 * Use React's legacy root API to mount components
12 * @description
13 * React has introduced a new root API with React 18.x to enable a whole set of new features (e.g. concurrent features)
14 * If this flag is true, the legacy Root API is used to mount components to make it easier to migrate step by step to React 18.
15 * @default false
16 */
17 legacyRootApi?: boolean;
18 };
19}