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

Add a rule requiring exported stories to be typed #188

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

Add a rule requiring exported stories to be typed #188

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

Comments

@alexeyr-ci
Copy link

alexeyr-ci commented Jan 19, 2025

And preferably with explicit generic types, so that

export const story: StoryObj = ...

is not valid, but so e.g. story: StoryObj<typeof meta> and

type Story = StoryObj<typeof SomeComponent>;

export const story: Story = ...;

are.

Related: #123.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant