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

Core: Fix composeStories typings #23577

Merged
merged 4 commits into from Aug 15, 2023
Merged

Conversation

yannbf
Copy link
Member

@yannbf yannbf commented Jul 24, 2023

What I did

  • fix types which were unsound
  • improve StoriesWithPartialProps type to filter non-story exports
  • add tsdoc comments for further clarification

How to test

No need, this has been tested already, and it's mostly Typescript checking.
You can play around in code/renderers/react/src/__test__/composeStories.test.tsx for validation

I made changes to type names, please review them and let me know if something doesn't seem good.

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

  • When this PR is ready for testing, make sure to add ci:normal, ci:merged or ci:daily GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found in code/lib/cli/src/sandbox-templates.ts
  • Make sure this PR contains one of the labels below.

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

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.

Let's do the 2 suggested changes of Tom

@kasperpeulen kasperpeulen removed their assignment Aug 4, 2023
- fix types which were unsound
- improve StoriesWithPartialProps type to filter non-story exports
@yannbf yannbf force-pushed the feat/improved-portable-stories-types branch from 9f15aaf to bb74e0b Compare August 10, 2023 07:46
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

@yannbf yannbf merged commit 34c26c9 into next Aug 15, 2023
53 checks passed
@yannbf yannbf deleted the feat/improved-portable-stories-types branch August 15, 2023 07:18
@github-actions github-actions bot mentioned this pull request Aug 15, 2023
8 tasks
@kasperpeulen kasperpeulen changed the title Core: Improve composeStories typings Core: Fix composeStories typings Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants