-
Notifications
You must be signed in to change notification settings - Fork 322
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
docs: fix type checking in storybook #2355
Conversation
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.
@YossiSaadi I had to revert this change, there were serious type issues otherwise. Maybe we can find other solution but I'm also ok with how it is now
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.
Not sure I understand what exactly was reverted here 🫣
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.
backButtonProps: Partial<ButtonProps>; | ||
nextButtonProps: Partial<ButtonProps>; | ||
finishButtonProps: Partial<ButtonProps>; |
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 changed it in a different PR since Button's children is now mandatory but I think making it a Partial is a better solution instead of providing children: ''
as it already have defaults
@@ -39,6 +39,12 @@ const config: StorybookConfig = { | |||
docs: { | |||
autodocs: false | |||
}, | |||
typescript: { |
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.
It read that simple? 🤦🏻♂️
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.
Looks like it haha
https://monday.monday.com/boards/3532714909/pulses/6272877557
For example:
It will also fail storybook build and prevent releasing corrupted versions