diff --git a/lib/addons/src/types.ts b/lib/addons/src/types.ts index 5c88f85d8767..c932aac017e6 100644 --- a/lib/addons/src/types.ts +++ b/lib/addons/src/types.ts @@ -36,16 +36,20 @@ export interface Args { [key: string]: any; } -export interface ArgType { +export interface ArgType { name?: string; description?: string; - defaultValue?: any; + defaultValue?: Arg; [key: string]: any; } -export type ArgTypes> = { - [key in keyof Partial]: ArgType; -}; +export type ArgTypes = { + [key in keyof Partial]: ArgType; +} & + { + // for custom defined args + [key in string]: ArgType; + }; export interface StoryIdentifier { id: StoryId;