[Feature Request]: Support correct argTypes
type inference for named TypeScript types
#23313
Labels
argTypes
type inference for named TypeScript types
#23313
Is your feature request related to a problem? Please describe
A Vue component defining a prop like this will get it's type correctly inferred by Storybook and will render as a select with the proper types:
A prop defined like this won't get properly inferred and be treated as an object:
Or:
Describe the solution you'd like
For Storybook to be able to correctly infer types in such cases.
Describe alternatives you've considered
Manually overriding the inference using
argTypes
. Requires also creating an array with the actual values and TypeScript trickery to turn it back into a type.Are you able to assist to bring the feature to reality?
no
Additional context
No response
The text was updated successfully, but these errors were encountered: