Skip to content

Conversation

@rahulb18
Copy link

Summary

Fixes #27129

This PR allows users with exactOptionalPropertyTypes: true to explicitly set summary and detail to undefined in argTypes.

Changes

  • Updated PropSummaryValue interface in PropDef.ts to include | undefined
  • Updated InputType table types in story.ts
  • Updated PropSummaryValue detail in ArgsTable/types.ts

Test Plan

  • ✅ All existing tests pass (112 tests)
  • ✅ PropDef tests: 26 passed
  • ✅ Custom elements tests: 2 passed
  • ✅ No new TypeScript errors introduced

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature
  • Breaking change

Fixes storybookjs#27129

This change allows users with exactOptionalPropertyTypes: true
to explicitly set summary and detail to undefined in argTypes.

Changes:
- Updated PropSummaryValue interface in PropDef.ts
- Updated InputType table types in story.ts
- Updated PropSummaryValue detail in ArgsTable types.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: summary: undefined type issue

1 participant