You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe
I recently used the Args API with non-optional fields and this led to some problems. I'm also not sure if this pattern is supported or not. The full background with code examples can be found here.
Describe the solution you'd like
Clarify if non-optional fields in the Args API are allowed or not.
If non-optional fields are allowed the Partial<> on args should IMHO be removed.
If non-optional fields are not allowed such a usage should be forbidden or raise warnings. (Maybe this can be raised on the type level already - basically disallowing fields which don't allow undefined - or one could start creating officially baked Storybook ESLint rules - I don't think they already exist or?)
Describe alternatives you've considered
The solution contains alternatives.
Are you able to assist to bring the feature to reality?
Yes.
Additional context
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe
I recently used the Args API with non-optional fields and this led to some problems. I'm also not sure if this pattern is supported or not. The full background with code examples can be found here.
Describe the solution you'd like
Partial<>
onargs
should IMHO be removed.undefined
- or one could start creating officially baked Storybook ESLint rules - I don't think they already exist or?)Describe alternatives you've considered
The solution contains alternatives.
Are you able to assist to bring the feature to reality?
Yes.
Additional context
The text was updated successfully, but these errors were encountered: