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

fix bad typings file caused by https://github.com/egoist/tsup/issues/782 #22261

Merged
merged 6 commits into from
May 1, 2023

Conversation

ndelangen
Copy link
Member

@ndelangen ndelangen commented Apr 26, 2023

Closes #21820
Closes #22288

What I did

How to test

Checklist

  • Make sure your changes are tested (stories and/or unit, integration, or end-to-end tests)
  • Make sure to add/update documentation regarding your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

Maintainers

  • If this PR should be tested against many or all sandboxes,
    make sure to add the ci:merged or ci:daily GH label to it.
  • Make sure this PR contains one of the labels below.

["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]

@ndelangen ndelangen added the bug label Apr 26, 2023
@ndelangen ndelangen self-assigned this Apr 26, 2023
…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.
@ndelangen ndelangen requested a review from shilman April 28, 2023 06:57
@ndelangen ndelangen added the patch:yes Bugfix & documentation PR that need to be picked to main branch label Apr 28, 2023
@ndelangen
Copy link
Member Author

@shilman I think this is a critical bugfix

@ndelangen
Copy link
Member Author

just one example:

before:
Screenshot 2023-04-28 at 15 39 46

after:
Screenshot 2023-04-28 at 15 41 12

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];
Copy link
Contributor

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';

Copy link
Member Author

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.

@kasperpeulen kasperpeulen self-requested a review May 1, 2023 09:49
Copy link
Contributor

@kasperpeulen kasperpeulen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch typescript
Projects
Archived in project
3 participants