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: move MetaProps to its own declaration to allow for overrides #138

Merged
merged 2 commits into from
Sep 13, 2023

Conversation

paoloricciuti
Copy link
Contributor

Right now the Meta class doesn't have a Props interface. This make it impossible to add overrides to the props (i'm using interface merging to provide intellisense for some parameters)

With this simple change the users will be able to augment the the typing of the Meta component

@oscard0m
Copy link

✅ but wait for @JReinhold's review

@oscard0m oscard0m requested a review from JReinhold September 13, 2023 07:17
@j3rem1e
Copy link
Contributor

j3rem1e commented Sep 13, 2023

FYI the Meta tag will be deprecated soon.

@j3rem1e j3rem1e added the patch Increment the patch version when merged label Sep 13, 2023
@paoloricciuti
Copy link
Contributor Author

FYI the Meta tag will be deprecated soon.

Oh yeah I saw that discussion...well until then 😄 also this could help to keep the typing this way when the meta is moved to the module script

Copy link
Collaborator

@JReinhold JReinhold left a comment

Choose a reason for hiding this comment

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

LGTM!

@paoloricciuti
Copy link
Contributor Author

Do I need to do something else before merging?

@JReinhold JReinhold merged commit b95af5e into storybookjs:main Sep 13, 2023
1 check passed
@shilman
Copy link
Member

shilman commented Sep 13, 2023

🚀 PR was released in v4.0.4 🚀

@shilman shilman added the released This issue/pull request has been released. label Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants