Replies: 1 comment 7 replies
-
I think @kasperpeulen can explain why |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
Case 1
I just wrote a typo in a story definition, and it took a while to figure out the issue:
(the first
...Default.args
should be...Default
)Case 2
The
args
ofStoryObj
is typed asPartial<MyComponentProps>
instead of simplyMyComponentProps
.This has lead to forgetting to specify a required prop in
args
, multiple times.Describe the solution you'd like
Case 1
Is it possible to make
StoryObj
catch this by using stronger typings?Case 2
Is it possible to remove
Partial
from theargs
type, so that required props stay required?Describe alternatives you've considered
No response
Are you able to assist to bring the feature to reality?
no
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions