-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
fix bad typings file caused by https://github.com/egoist/tsup/issues/782 #22261
Conversation
…ate. Turns out this is a much wider problem. This fixes all of them, not just in the html renderer. I agree these changes aren't the best. we should contact the authors of the tooling and get these problems addressed.
@shilman I think this is a critical bugfix |
import { withBackground } from './decorators/withBackground'; | ||
import { withGrid } from './decorators/withGrid'; | ||
import { PARAM_KEY } from './constants'; | ||
|
||
export const decorators = [withGrid, withBackground]; | ||
export const decorators: Addon_DecoratorFunction[] = [withGrid, withBackground]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would just use import type { DecoratorFunction } from '@storybook/types';
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These types are pretty much equal. When we do the types cleanup at 8.0 we'll sync this up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…dition fix bad typings file caused by egoist/tsup#782
Closes #21820
Closes #22288
What I did
How to test
Checklist
MIGRATION.MD
Maintainers
make sure to add the
ci:merged
orci:daily
GH label to it.["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]