Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Documentation]: Specify expected preview types in TypeScript docs #30224

Open
alexeyr-ci opened this issue Jan 9, 2025 · 0 comments
Open

[Documentation]: Specify expected preview types in TypeScript docs #30224

alexeyr-ci opened this issue Jan 9, 2025 · 0 comments

Comments

@alexeyr-ci
Copy link

Describe the problem

https://storybook.js.org/docs/configure/integration/typescript has

// Replace your-framework with the framework you are using (e.g., react-webpack5, vue3-vite)
import type { StorybookConfig } from '@storybook/your-framework';
 
const config: StorybookConfig = {

for .storybook/main.ts, but no equivalent for preview.ts(x).

https://storybook.js.org/docs/configure#configure-story-rendering should probably include it as well.

I finally found it in https://storybook.js.org/docs/writing-stories/parameters#global-parameters.

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant