storybookjs/storybook
在 GitHub 查看[Documentation]: Documentation for `argTypes` is not correct
Open
#24,174 创建于 2023年9月14日
argtypeshelp wantedtypescript
描述
Describe the problem
The docs say:
But the actual type is:
interface InputType {
name?: string;
description?: string;
defaultValue?: any;
type?: SBType | SBScalarType['name'];
if?: Conditional;
[key: string]: any;
}
I'm willing to work on this if it's indeed wrong.
Additional context
Edit: Taking another look at this - you can indeed pass options and control and it does work but it is not documented in the type.