Skip to content

Commit

Permalink
Merge pull request #21297 from storybookjs/chore_docs_fix_migration_p…
Browse files Browse the repository at this point in the history
…review_type

Chore (Docs) Fix the Preview type snippets in the migration guide
  • Loading branch information
jonniebigodes authored Feb 28, 2023
2 parents 475b6d3 + 135cd63 commit 3bebd73
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@ The `Preview` type will come from the Storybook package for the **renderer** you
import { Preview } from '@storybook/react';

const preview: Preview = {
actions: { argTypesRegex: '^on[A-Z].*' },
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
},
};
export default preview;
```
Expand All @@ -337,7 +339,9 @@ In JavaScript projects using `preview.js`, it's also possible to use the `Previe
```ts
/** @type { import('@storybook/react').Preview } */
const preview: Preview = {
actions: { argTypesRegex: '^on[A-Z].*' },
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
},
};
export default preview;
```
Expand Down

0 comments on commit 3bebd73

Please sign in to comment.