diff --git a/code/addons/docs/src/blocks/components/ArgsTable/types.ts b/code/addons/docs/src/blocks/components/ArgsTable/types.ts index c81327d82215..dcd32fbf98c6 100644 --- a/code/addons/docs/src/blocks/components/ArgsTable/types.ts +++ b/code/addons/docs/src/blocks/components/ArgsTable/types.ts @@ -22,7 +22,7 @@ export interface JsDocTags { export interface PropSummaryValue { summary: string; - detail?: string; + detail?: string | undefined; required?: boolean; } diff --git a/code/core/src/csf/story.ts b/code/core/src/csf/story.ts index 0a128a1670a2..6ff038936383 100644 --- a/code/core/src/csf/story.ts +++ b/code/core/src/csf/story.ts @@ -126,13 +126,13 @@ export interface InputType { /** @see https://storybook.js.org/docs/api/arg-types#tablecategory */ category?: string; /** @see https://storybook.js.org/docs/api/arg-types#tabledefaultvalue */ - defaultValue?: { summary?: string; detail?: string }; + defaultValue?: { summary?: string | undefined; detail?: string | undefined }; /** @see https://storybook.js.org/docs/api/arg-types#tabledisable */ disable?: boolean; /** @see https://storybook.js.org/docs/api/arg-types#tablesubcategory */ subcategory?: string; /** @see https://storybook.js.org/docs/api/arg-types#tabletype */ - type?: { summary?: string; detail?: string }; + type?: { summary?: string | undefined; detail?: string | undefined }; }; /** @see https://storybook.js.org/docs/api/arg-types#type */ type?: SBType | SBScalarType['name']; diff --git a/code/core/src/docs-tools/argTypes/docgen/PropDef.ts b/code/core/src/docs-tools/argTypes/docgen/PropDef.ts index 7fcbae1ae466..7c4613debe4a 100644 --- a/code/core/src/docs-tools/argTypes/docgen/PropDef.ts +++ b/code/core/src/docs-tools/argTypes/docgen/PropDef.ts @@ -15,8 +15,8 @@ export interface JsDocTags { } export interface PropSummaryValue { - summary?: string; - detail?: string; + summary?: string | undefined; + detail?: string | undefined; } export type PropType = PropSummaryValue;