We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe.
Each default export must be typed as Meta. Each exported story must be typed as StoryObj.
Describe the solution you'd like
export default must be an object and must contain satisfies Meta< ... >
export default
satisfies Meta< ... >
export ... should be typed as StoryObj< ... > or Story (https://storybook.js.org/docs/react/configure/typescript#write-stories-with-typescript)
export ...
StoryObj< ... >
Story
The text was updated successfully, but these errors were encountered:
I made implementations for internal use, they are suitable for our case, but I'm sure they do not cover many edge cases.
https://gist.github.com/dartess/615fd442461db793a417def8e5060681
Sorry, something went wrong.
Add meta-satisfies-type rule #124
No branches or pull requests
Is your feature request related to a problem? Please describe.
Each default export must be typed as Meta. Each exported story must be typed as StoryObj.
Describe the solution you'd like
export default
must be an object and must containsatisfies Meta< ... >
export ...
should be typed asStoryObj< ... >
orStory
(https://storybook.js.org/docs/react/configure/typescript#write-stories-with-typescript)The text was updated successfully, but these errors were encountered: