Skip to content

Commit

Permalink
Merge pull request #21449 from storybookjs/valentin/add-types-to-reac…
Browse files Browse the repository at this point in the history
…t-vite

Add some missing types to @storybook/react-vite
  • Loading branch information
valentinpalkovic committed Mar 8, 2023
2 parents 26b7fab + 24bf2b6 commit 5854ef3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions code/frameworks/react-vite/src/types.ts
Expand Up @@ -10,6 +10,15 @@ type BuilderName = '@storybook/builder-vite';

export type FrameworkOptions = {
builder?: BuilderOptions;
strictMode?: boolean;
/**
* Use React's legacy root API to mount components
* @description
* React has introduced a new root API with React 18.x to enable a whole set of new features (e.g. concurrent features)
* 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.
* @default false
*/
legacyRootApi?: boolean;
};

type StorybookConfigFramework = {
Expand Down

0 comments on commit 5854ef3

Please sign in to comment.