Skip to content

Commit

Permalink
Add some missing types to @storybook/react-vite
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Mar 7, 2023
1 parent cc5dad2 commit 24bf2b6
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 24bf2b6

Please sign in to comment.